Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
116964 | 晏莞煜 | 12序列找规律 | C++ | Accepted | 1 MS | 272 KB | 243 | 2025-04-13 08:46:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,q=0,b=10000; cin>>n; for(int d=1;d<=n/2-1;d++){ if(n%2==0){ b-=2; } } for(int e=1;e<=n/2;e++){ if(n%2!=0){ b-=1; } } cout<<b; return 0; }