Facebook
From ds, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 198
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main ()
  4. {
  5.  int a;
  6.  cin >>a;
  7.  if (a<1532 && a%4==0)
  8.  {
  9.         cout <<"TAK";
  10.  
  11.  return 0;
  12. }
  13. if (a%4==0 &&(a%100>0 or a%400==0) && a>1532)
  14. {
  15.         cout <<"TAK";
  16.  
  17. }
  18. else {
  19.         cout<< "NIE";
  20.        
  21. }
  22. return 0;
  23. }
  24.  
  25.  
  26.        
  27.