Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
63 | ZRH | 闰年的数量 | C++ | Accepted | 0 MS | 264 KB | 452 | 2022-07-19 02:07:50 |
#include<iostream> //输入函数库 #include<iomanip> #include<cmath> //数学函数库 #include<cstdio> #include<ctime> #include<cstring> #include<cstdlib> #include<string> #include<stdlib.h> #include<sys/time.h> using namespace std; int t(int x,int y){ int c=0; for(int i=x;i<=y;i++){ if(i%400==0||i%100!=0&&i%4==0){ c++; } } return c; } int main(){ int x,y; cin>>x>>y; cout<<t(x,y); return 0; }