Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
6668 张昊然 【基础题】天数 C++ Accepted 2 MS 724 KB 226 2021-02-18 09:33:04

Tests(4/4):


Code:

#include <iostream> using namespace std; int main() { int n; cin >> n; if (n == 2) { cout << 28; } else if (n == 4 || n == 6 || n == 9 || n == 11) { cout << 30; } else { cout << 31; } return 0; }