Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161412 王垚植 09闰年第n个月有多少天 C++ Accepted 2 MS 276 KB 243 2026-10-04 20:00:58

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int a[13]={0,31,29,31,30,31,30,31,31,30,31,30,31}; int main(){ int n; cin>>n; if (n>1 && n<12){ cout<<a[n]; return 0; } cout<<"Invalid."; return 0; }