Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
71205 刘泽熙 08判断是否为闰年 C++ Wrong Answer 0 MS 272 KB 356 2024-04-21 14:41:00

Tests(0/11):


Code:

#include <bits/stdc++.h> using namespace std; int main() { int year; cin >> year; if (year % 4 != 0) { cout << year << " " << "no"; } else { if (year % 100 != 0) { cout << year << " " << "yes"; } else { if (year % 400 == 0) { cout << year << " " << "yes"; } else { cout << year << " " << "no"; } } } }


Run Info:

------Input------
3264
------Answer-----
3264 Yes
------Your output-----
3264 yes