Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
125118 梁煜然 判断闰年 C++ Accepted 100 0 MS 252 KB 281 2024-01-23 16:26:42

Tests(12/12):


#include<iostream> using namespace std; int main(){ int y,a,b,c; cin>>y; a=y%4; b=y%400; c=y%100; if(c==0){ if(b==0){ cout<<"Y"; } else{ cout<<"N"; } } if(c!=0){ if(a==0){ cout<<"Y"; } else{ cout<<"N"; } } return 0; }


Judgement Protocol: