| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 146006 | 潘明泽 | 09闰年第n个月有多少天 | C++ | Accepted | 1 MS | 288 KB | 247 | 2026-01-25 20:12:46 |
#include<bits/stdc++.h> using namespace std; int n,n2,n3; int a[5005]={0,31,29,31,30,31,30,31,31,30,31,30,31}; int main(){ cin>>n; if(n<=0||n>=13){ cout<<"Invalid."; }else{ cout<<a[n]; } return 0; }