Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
280 张志鹏 判断某年某月天数 C++ Compile Error 0 0 MS 0 KB 313 2019-09-18 19:58:19

Tests(0/0):


#include<iostream> int main(){ int a,b,c; scanf("%d %d",&a,&b); if(b==1||b==3||b==5||b==7||b==8||b==10||b==12||b==9||b==11) c=31; if(b==4||b==6) c==30; if(b==2){ if(a%4==0){ if(a%100==0){ if(a%400==0) c=29; else c=28; }else c=29; }else c=28; } printf("%d",c); return 0;


Judgement Protocol: