Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
5632 黄宜洋 11下一次奥运会 C++ Accepted 0 MS 260 KB 440 2024-12-07 15:17:50

Tests(10/10):


Code:

#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; void oj2(){ int y,n=0; scanf("%d",&y); if(y%100!=0){ n=4-y%4; } else{ n=4-(y/100)%4; } printf("%d",n); } int main(){ oj2(); return 0; }