Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3753 | 杨洋杰 | 【基础题】天数 | C++ | Accepted | 0 MS | 264 KB | 234 | 2024-06-29 18:48:51 |
#include<iostream> using namespace std; int main(){ int a; cin>>a; if(a!=2){ if(a==1||a==3||a==5||a==7||a==8||a==10||a==12) cout<<"31"; else cout<<"30"; } else cout<<"28"; return 0; }