#include <iostream>
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a%4==0 && a%100!=0 || a%400==0)
cout << "閏年" << endl;
else
cout << "平年" << endl;
if (b%4==0 && b%100!=0 || b%400==0)
cout << "閏年" << endl;
else
cout << "平年" << endl;
return 0;
}
#include
using namespace std;
int main()
{
int a, b;
cin >> a >> b;
if (a%4==0 && a%100!=0 || a%400==0)
cout << "閏年" << endl;
else
cout << "平年" << endl;
if (b%4==0 && b%100!=0 || b%400==0)
cout << "閏年" << endl;
else
cout << "平年" << endl;
return 0;
}
輕輕鬆鬆簡簡單單有手就行