Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
345437 123456 【GESP一级】每月天数 C++ 通过 100 3 MS 248 KB 298 2025-09-03 21:15:27

Tests(10/10):


#include<bits/stdc++.h> using namespace std; int main(){ int y,m; cin>>y>>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(y%4==0&&y%100!=0||y%400==0) cout<<29; else cout<<28; } return 0; }


测评信息: