#include <iostream> using namespace std; int main() { int n; cin >> n; if (n % 4 == 0 && n % 100 != 0 || n % 400 == 0) { cout << "Y";//是闰年 } else { cout << "N";//不是闰年 } return 0; } //by luogu EARS_TURE
感谢支持