| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 147412 | 邓凯方 | 09闰年第n个月有多少天 | C++ | Wrong Answer | 0 MS | 268 KB | 593 | 2026-02-04 19:36:21 |
#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 a; cin>>a; if(a==1||a==3||a==5||a==7||a==8||a==10||a==12){ cout<<"31"; } if(a==4||a==6||a==9||a==11){ cout<<"30"; } if(a==2){ cout<<"29"; } if(a!=1||a!=2||a!=3||a!=4||a!=5||a!=6||a!=7||a!=8||a!=9||a!=10||a!=11||a!=12){ cout<<"lnvalid"; } return 0; }
------Input------
3
------Answer-----
31
------Your output-----
31lnvalid