| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62322 | 李明择 | 09闰年第n个月有多少天 | C++ | Accepted | 1 MS | 276 KB | 366 | 2023-12-23 13:12:16 |
# include<iostream> # include<iomanip> using namespace std; int main(){ int n; cin>>n; if(n==1 || n==3 || n==5 || n==7 || n==8 || n==10 || n==12){ cout<<31; } else if(n==4 || n==6 || n==9 || n==11){ cout<<30; } else if(n==2){ cout<<29; } else{ cout<<"Invalid."; } return 0; }