| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 139919 | 张咏灏 | 09闰年第n个月有多少天 | C++ | Wrong Answer | 0 MS | 268 KB | 264 | 2025-12-13 10:05:26 |
#include <iostream> using namespace std; int main() { int a; cin>>a; if(a==2){ cout<<"29";; }else if(a==8){ cout<<"31"; }else if(a%2!=0||a<2){ cout<<"31"; }else{ cout<<"30"; } }
------Input------
0
------Answer-----
Invalid.
------Your output-----
31