| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159201 | 王艺博 | 12序列找规律 | C++ | Accepted | 1 MS | 276 KB | 239 | 2026-08-26 16:57:36 |
#include<iostream> using namespace std; int main() { int x,j=10000,t=10000; cin>>x; for(int a=3;a<=x;a++){ if( a%2==0){ t-=2; }else{ j-=1; } } if(x%2==0){ cout<<t; }else{ cout<<j; } return 0; }