#include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <sstream>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
bool runnian(int t)
{
if (t%4==0||t%400==0&&t%100!=0)
return true;
else
return false;
}
int main()
{
int t;
cin>>t;
if (runnian)
cout <<"yes";
else
cout<<"no";
return 0;
}
c++ 用bool判断闰年
最新推荐文章于 2024-05-04 13:38:58 发布