Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
86591 sh25_zhangyy 每月天数 C++ 通过 0 MS 252 KB 281 2026-04-03 15:41:47

Tests(2/2):


#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; }


测评信息: