| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 164587 | 屠思宇 | 09闰年第n个月有多少天 | C++ | Accepted | 1 MS | 272 KB | 251 | 2026-11-05 20:53:08 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; int day[]={0,31,29,31,30,31,30,31,31,30,31,30,31}; if (n>=1 && n<=12){ cout<<day[n]; } else{ cout<<"Invalid."; } return 0; }