| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 156005 | 解禾溪 | 09闰年第n个月有多少天 | C++ | Wrong Answer | 0 MS | 272 KB | 455 | 2026-06-19 19:29:46 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() 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==2){ cout<<29; } else{ cout<<30; } return 0; }
------Input------
0
------Answer-----
Invalid.
------Your output-----
30