提交时间:2021-06-12 16:12:32

运行 ID: 20397

#include <iostream> using namespace std; int main(){ int year; cin >> year; if(year % 4 == 0){ if(year % 100 == 0){ if (year % 400 == 0) cout << year << "Yes"; else cout << year << "No"; } else cout << year << "Yes"; } else cout << year << "No"; return 0; }