| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 137893 | 刘杨国屹 | 12序列找规律 | C++ | Wrong Answer | 1 MS | 264 KB | 242 | 2025-11-23 11:02:19 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,a=10000,b=10000; cin>>n; for(int i=n;i<=n;i++){ if(i%2==0){ b-=2; }else{ a-=1; } } if(n%2==0){ cout<<b; }else{ cout<<a-1; } return 0; }
------Input------
13
------Answer-----
9994
------Your output-----
9998