Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
115800 | 江梵睿 | 11下一次奥运会 | C++ | Accepted | 1 MS | 276 KB | 525 | 2025-04-04 18:08:30 |
#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 x,y=4; cin>>x; if(x%4==0){ y-=0; cout<<y; } if(x%4==1){ y-=1; cout<<y; } if(x%4==2){ y-=2; cout<<y; } if(x%4==3){ y-=3; cout<<y; } return 0; }