S001-AC.cc
432 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
#include <sstream>
using namespace std;
bool is_palindromic(int n)
{
stringstream sstream;
string str;
sstream << n;
sstream >> str;
for(int i = 0; i < str.size()/2; i++)
{
if(str[i] != str[str.size() - i - 1])
{
return false;
}
}
return true;
}
int main()
{
/*
int a;
cin >> a;
if(is_palindromic(a))
{
cout << "TRUE" << endl;
}
else
{
cout << "FALSE" << endl;
}
return 0;
*/
}