Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
98174 徐齐力 判断闰年I C++ Accepted 0 MS 272 KB 316 2024-11-17 15:00:11

Tests(1/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a,b,c; cin>>a; b=a%400; c=a%4; if(b==0||c==0) { cout<<"leap year"; } if(b<0||c<0) { cout<<"not leap year"; } return 0; }