Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
61 | 老师 | 判断某年某月天数 | C++ | 解答错误 | 22 | 0 MS | 256 KB | 532 | 2019-09-16 12:20:17 |
#include<iostream> int main(){ int a,b; scanf("%d %d",&a,&b); switch(b){ case 1:printf("%d",31);break; case 2:printf("%d",28);break; case 3:printf("%d",31);break; case 4:printf("%d",30);break; case 5:printf("%d",31);break; case 6:printf("%d",30);break; case 7:printf("%d",31);break; case 8:printf("%d",31);break; case 9:printf("%d",30);break; case 10:printf("%d",31);break; case 11:printf("%d",30);break; case 12:printf("%d",31);break; default:printf("error"); } return 0; }