| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 62154 | 太阳系地球中国江苏南通czq | 判断某年某月天数 | C++ | Wrong Answer | 0 | 0 MS | 244 KB | 310 | 2022-11-03 21:15:14 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; if(n%4!=0&&m==2){ cout<<"28"; } else{ cout<<"29"; } if(m!=2&&m<7&&m%2==0){ cout<<"30"; } if(m==7||m==8){ cout<<"31"; } if(m>8&&m%2!=0){ cout<<"30"; } else{ cout<<"31"; } return 0; }