| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 82410 | sh25_shenpy | 每月天数 | C++ | 通过 | 0 MS | 240 KB | 281 | 2026-01-11 20:43:48 |
#include<bits/stdc++.h> using namespace std; int s[12]={31,28,31,30,31,30,31,31,30,31,30,31}; int main(){ int y,m; cin>>y>>m; if(y%4!=0||(y%100==0&&y%400!=0)||m!=2){ cout<<s[m-1]; return 0; } else{ cout<<29;} return 0; }