Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <iostream>
  2. #include <queue>
  3. using namespace std;
  4. queue <int> c;
  5. int n,x,ogl;
  6. int main()
  7. {
  8. cin>>n;
  9. x=n;
  10. while(x!=0)
  11. {
  12. c.push(x%10);
  13. x/=10;
  14. }
  15. while(!c.empty())
  16. {
  17. ogl=ogl*10+c.front();
  18. c.pop();
  19. }
  20. if(ogl==n)
  21. cout<<"DA";
  22. else
  23. cout<<"NU";
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement