Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
40386 chenyanda 判断闰年 C++ 通过 0 MS 244 KB 246 2024-02-09 22:09:29

Tests(1/1):


#include<iostream> using namespace std; int main() { int k; cin>>k; if(k%4==0){ if(k%100==0){ if(k%400==0){ cout<<"Y"; } else{ cout<<"N"; } } else{ cout<<"Y"; } } else{ cout<<"N"; } }


测评信息: