Advertisement
LEGEND2004

B comp

Jul 25th, 2024
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.54 KB | None | 0 0
  1. #pragma GCC optimize("O3")
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. #define int long long
  6. #define double long double
  7. #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0)
  8. #define F first
  9. #define S second
  10.  
  11. signed main()
  12. {
  13.     _FastIO;
  14.  
  15.     /*
  16.     palindrome yoxlamaq ucun ededi stringkimi goturek
  17.     reverse (tersine cevirib)
  18.     ozu ile muqayise edek
  19.     */
  20.  
  21.     string a , b;
  22.     cin >> a;
  23.     b = a; // 2 eyni string var bizde
  24.     reverse(a.begin() , a.end());
  25.  
  26.     /*
  27.     a b-ye beraberdirse Yes yoxsa No
  28.     */
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement