2 条题解
-
1高梓晴 (ts2024stu008) LV 10 @ 2025-1-4 14:23:55
#include<iostream> #include<cmath> using namespace std; int main() { int y, m; cin >> y >> m; 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; } else cout << 31; return 0; }
有标志认证,属三无产品,请大家放心食用
-
02024-8-9 17:25:43@
#include<iostream> #include<cmath> using namespace std; int main() { int y, m; cin >> y >> m; 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; } else cout << 31; return 0; }
- 1
信息
- ID
- 3130
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 1
- 标签
- 递交数
- 82
- 已通过
- 34
- 上传者