Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115801 | 翁思宸 | 11下一次奥运会 | C++ | Wrong Answer | 1 MS | 272 KB | 466 | 2025-04-04 18:14:14 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int y,s,a=4,i; cin>>y; if(y%4==0){ cout<<"4"; } else if(y%4!=0){ for(i=1;y%4==0;i++){ y-=1; } a=a-i; cout<<a; } return 0; }
------Input------
4311
------Answer-----
1
------Your output-----
3