Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
126521 包老师 09闰年第n个月有多少天 C++ Wrong Answer 1 MS 264 KB 639 2025-07-19 17:16:27

Tests(1/10):


Code:

#include<bits/stdc++.h> using namespace std;//命名空间 分号是英文分号 int main() { int a; cin >> a; if (a < 0) { cout << "Invalid."; } if (a > 12) { cout << "Invalid."; } if (a == 1) { cout << 31; } if (a == 2) { cout << 29; } if (a == 3) { cout << 31; } if (a == 4) { cout << 30; } if (a == 5) { cout << 31; } if (a == 6) { cout << 30; } if (a == 7) { cout << 31; } if (a == 8) { cout << 31; } if (a == 9) { cout << 30; } if (a == 10) { cout << 31; } if (a == 11) { cout << 30; } if (a == 12) { cout << 31; } return 0; }


Run Info:

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