Run ID:110365

提交时间:2025-02-17 19:40:49

#include <iostream> using namespace std; int main() { int year; cin >> year; // 读取输入的年份 // 判断是否为闰年 if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { cout << year << " Yes" << endl; } else { cout << year << " No" << endl; } return 0; }