Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
66063 胡家豪 08有几个闰年 C++ Accepted 0 MS 276 KB 270 2024-03-02 12:13:45

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int y,q,w; cin>>y>>q>>w; int j=0; if(y%400==0||(y%4==0&&y%100!=0)){ j++; } if(q%400==0||(q%4==0&&q%100!=0)){ j++; } if(w%400==0||(w%4==0&&w%100!=0)){ j++; } cout<<j; return 0; }