Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
101959 | 殷佳雨萱 | 11下一次奥运会 | C++ | Wrong Answer | 1 MS | 272 KB | 236 | 2024-12-21 10:41:02 |
#include <iostream> using namespace std; int main(){ int y,t; cin>>y; if(y<=2008){ t = 2008-y+4; } else if(y>2008 && y-2008<=4){ t = 4-(y-2008); } else{ t = 4*2-(y-2008)+1; } cout<<t; return 0; }
------Input------
6045
------Answer-----
3
------Your output-----
-4028