fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int x;
  6. cin>>x;
  7. if((x%4==0&&x%100!=0)||x%400==0)
  8. cout<<"Tak";
  9. else cout<<"Nie";
  10. return 0;
  11. }
Success #stdin #stdout 0s 5304KB
stdin
2000
stdout
Tak