9 solutions
-
0
#include<bits/stdc++.h> using namespace std; char a[100000010]; bool x = true; int main() { int num = 0, n = 1; while(cin >> a[n]) { num++; n++; } for(int i = 1; i <= n/2; i++) { if(a[i] != a[n-i]) { x = false; break; } } if(x == true) { cout << "yes"; } else { cout << "no"; } return 0; }
- 1
Information
- ID
- 632
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 88
- Accepted
- 42
- Uploaded By