#include<bits/stdc++.h> using namespace std; bool isLeapyear(int y) { if(y%4==0&&y%100!=0||y%400==0) { return true; } return false; } int main() { int n; cin>>n; if(isLeapyear(n)) cout<<"yes"; else cout<<"no"; return 0; }
Using your lizikid universal account