Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145140 徐景一 判断闰年I C++ Accepted 0 MS 268 KB 247 2026-01-25 09:01:24

Tests(1/1):


Code:

#include <iostream> using namespace std; int main(){ int n; cin>>n; if((n%4==0 && n%100!=0)||(n%100==0 && n%400==0)){ cout<<"leap year"<<endl; }else{ cout<<"not leap year"<<endl; } return 0; }