Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
68905 张恒杰 判断闰年I C++ Output Limit Exceeded 0 MS 272 KB 236 2024-03-27 21:51:54

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ for(int i=2000;i<=2500;i++) { cin>>i; if(i%4==0&&i%100!=0||i%400==0) { cout<<"leap year"; } else { cout<<"not leap year"; } } return 0; }