| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 86251 | Kevin | 12序列找规律 | C++ | Accepted | 1 MS | 272 KB | 202 | 2024-07-23 22:07:29 |
#include<bits/stdc++.h> using namespace std; int a(int n){ if(n%2){ return 10000-(n-1)/2; } else{ return a(n-1)-(n/2-1); } } int main(){ int n; cin>>n; cout<<a(n); return 0; }