1 solutions
-
0
#include<iostream> #include<string> #include<algorithm> using namespace std; int main() { int a, b; cin >> a >> b; int c = a + b; cout << c << endl; string str_c = to_string(c); string new_str_c = str_c; reverse(str_c.begin(), str_c.end()); if (str_c == new_str_c) { cout << "Yes"; } else { cout << "No"; } return 0; }
- 1
Information
- ID
- 37
- Time
- 1000ms
- Memory
- 64MiB
- Difficulty
- 10
- Tags
- # Submissions
- 5
- Accepted
- 1
- Uploaded By