| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 171 | 李思贤 | 判断某年某月天数 | C++ | Accepted | 100 | 0 MS | 252 KB | 382 | 2019-09-17 21:21:56 |
#include<iostream> int main(){ int a,b; scanf("%d %d",&a,&b); if(a%4==0){ if(b==2) printf("29"); if(b==1||b==3||b==5||b==7||b==8||b==10||b==12) printf("31"); if(b==4||b==6||b==9||b==11) printf("30"); } else{ if(b==2) printf("28"); if(b==1||b==3||b==5||b==7||b==8||b==10||b==12) printf("31"); if(b==4||b==6||b==9||b==11) printf("30"); } return 0; }