Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96833 | 林嘉乐 | 11下一次奥运会 | C++ | Accepted | 1 MS | 268 KB | 267 | 2024-11-09 16:40:30 |
#include<iostream> #include<iomanip> using namespace std; int main() { int y; cin>>y; if(y%4==0){ cout<<"4"<<endl; } else if(y%4==1){ cout<<"3"<<endl; } else if(y%4==2){ cout<<"2"<<endl; } else{ cout<<"1"<<endl; } return 0; }