| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 67281 | wangyuchun | 【入门】判断某年某月的天数 | C++ | No Test Data | 0 MS | 0 KB | 310 | 2025-09-02 15:20:30 |
#include<bits/stdc++.h> using namespace std; int main(){ int n,m; cin>>n>>m; if(m==1||m==3||m==5||m==7||m==8||m==10||m==12){ cout<<"31"; }else if(m==4||m==6||m==9||m==11){ cout<<"30"; }else if(m==2){ if((n%4==0&&n%100!=0)||n%400==0){ cout<<"29"; }else{ cout<<"28"; } } }