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

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ for(int i=2100;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; }