fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  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 0.01s 5272KB
stdin
2000
stdout
Tak