fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x;
  6. cin >> x;
  7. if(x%10==x/100) cout<<"Tak";
  8. else cout<<"Nie";
  9. return 0;
  10. }
Success #stdin #stdout 0.01s 5280KB
stdin
123
stdout
Nie