Files
python/C++课程/第十课逻辑表达式和条件表达式/p70.cpp

12 lines
212 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include<iostream>
using namespace std;
int main() {
int year;
cin>>year;
if((year%4==0 && year%100!=0)||year%400==0)
cout<<year<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
else cout<<year<<"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>"<<endl;
return 0;
}