#54336: c++詳解(附註解)


leon0526@smail.hc.edu.tw (703-3-范子昂Leon)


#include <bits/stdc++.h>

 using namespace std;

 int main() {

 int year; while (cin >> year){

 if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {

 cout << "閏年" << endl; }

 else { cout << "平年" << endl; }

 } return 0;

 }