Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
130037 | 刘嘉柚 | 判断闰年 | C++ | 通过 | 100 | 0 MS | 248 KB | 325 | 2024-01-27 15:23:06 |
#include<bits/stdc++.h> #define ac int using namespace std; bool check(ac y){ return y%4==0&&y%100!=0||y%400==0; } int main() { //freopen("year.in","r",stdin); //freopen("year.out","w",stdout); ac year; cin>>year; if(check(year)) cout<<"Y"; else cout<<"N"; //fclose(stdin);fclose(stdout); return 0; }