| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 66502 | 何思佳 | 09闰年第n个月有多少天 | C++ | Accepted | 0 MS | 280 KB | 290 | 2024-03-09 11:21:11 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a>12||a<=0){ cout<<"Invalid."; } if(a==1||a==3||a==5||a==7||a==8||a==10||a==12){ cout<<"31"; } else if(a==2){ cout<<"29"; } else if(a==4||a==6||a==9||a==11){ cout<<"30"; } return 0; }