| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 158980 | 刘杨国卿 | 闰年的数量 | C++ | Accepted | 1 MS | 272 KB | 293 | 2026-08-24 11:51:49 |
#include<bits/stdc++.h> using namespace std; bool l(int n){ if(n%400==0){ return true; }else if(n%100!=0 and n%4==0){ return true; }else{ return false; } } int main(){ int x,y,num=0; cin>>x>>y; for(int i=x;i<=y;i++){ if(l(i))num++; } cout<<num; return 0; }