| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83993 | 杜奕辰 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 339 | 2024-07-15 10:51:05 |
#include<bits/stdc++.h> using namespace std; bool m(int a) { if(a%4==0&&a%100!=0||a%400==0) { return true; } else { return false; } } int main() { int x,y,n=0; cin>>x>>y; for(int i=x; i<=y; i++) { if(m(i)) { n++; } } cout<<n; return 0; }