| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 150311 | 罗钰帆 | 11下一次奥运会 | C++ | Accepted | 1 MS | 272 KB | 511 | 2026-03-26 19:56:46 |
#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; cin>>y; if(y%4==0&&y%100!=0||y%400==0){ cout<<4; } if(y%4==1&&y%100!=0){ cout<<3; } if(y%4==2&&y%100!=0){ cout<<2; } if(y%4==3&&y%100!=0){ cout<<1; } return 0; }