Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115803 | 翁思宸 | 11下一次奥运会 | C++ | Accepted | 0 MS | 272 KB | 466 | 2025-04-04 18:16:54 |
#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=0;y%4!=0;i++){ y-=1; } a=a-i; cout<<a; } return 0; }