Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
146116 张奕杨 09闰年第n个月有多少天 C++ Wrong Answer 0 MS 272 KB 399 2026-01-26 12:08:56

Tests(1/10):


Code:

#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,m[12]={31,29,31,30,31,30,31,31,30,31,30,31}; cin>>n; if(1<=n&&n<=12) cout<<m[n-1]; else cout<<"Invalid"; return 0; }


Run Info:

------Input------
0
------Answer-----
Invalid.
------Your output-----
Invalid