Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

RGB7309 - Палиндром эсэх

Өгөгдсөн тоо палиндром бол YES үгүй бол NO гэж хэвлэ. Палиндром тоо гэдэг нь тонгорогсон тоотойгоо тэнцүү тоог хэлнэ.

Input

Бүхэл тоо өгөгдөнө.

Output

Палиндром бол YES үгүй бол NO гэж хэвлэ.

Example

Input:
12321

Output:
YES

Нэмсэн:Bataa
Огноо:2013-01-09
Хугацааны хязгаарлалт:1s
Эх кодын хэмжээний хязгаарлалт:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Програмчлалын хэлүүд:ADA95 ASM32 BASH BF C NCSHARP CSHARP C++ 4.3.2 CPP C99 CLPS LISP sbcl LISP clisp D ERL FORTRAN HASK ICON ICK JAVA JS-RHINO JULIA LUA NEM NICE OCAML PAS-GPC PAS-FPC PERL PHP PIKE PRLG-swi PYTHON PYPY3 PYTHON3 RUBY SCALA SCM guile ST TCL WHITESPACE

hide comments
2022-11-16 03:42:03
#include <iostream>
using namespace std;
int main () {
int n,m=0;
cin >> n;
int tmp=n;
while (n>0) {
m = m * 10 + n % 10;
n/=10;
}
cout << (tmp== m ?"YES":"NO");
return 0;
}
2022-10-24 09:43:05
#include <iostream>
using namespace std;
int main () {
int whatdadogdewin,nigeria=0;
cin >> whatdadogdewin;
int dripcat=whatdadogdewin;
while (whatdadogdewin>0) {
nigeria = nigeria * 10 + whatdadogdewin % 10;
whatdadogdewin/=10;
}
cout << (dripcat== nigeria ?"YES":"NO");
return 0;
}
2022-07-25 08:04:37
#include <iostream>
using namespace std;
int main () {
int n,m=0;
cin >> n;
int tmp=n;
while (n>0) {
m = m * 10 + n % 10;
n/=10;
}
cout << (tmp== m ?"YES":"NO");
return 0;
}
2022-06-24 13:23:51
hi



















































































































































































































































































bye
2022-06-22 14:04:51
#include<iostream>
using namespace std;
int main()
{
int n , m , r , v=0 ;
cin >> n ;
m = n ;
while ( m>0 )
{ r = m % 10 ;
m = m / 10 ;
v = v * 10 + r ; }
if ( n==v )
cout << "YES" ;
else
cout << "NO" ;
return 0;
}khandmaa to tusa
2022-04-28 07:24:12
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,t,r,v;
cin>>n;
t=n;
v=0;
while(t>0) {r=t%10;t=t/10;v=v*10+r;}
if(n==v)cout<<"YES";
else(cout<<"NO");
return 0;
}-orgil 8-1
2022-04-05 10:26:46
#include<iostream>
using namespace std;
int main()
{
int n , m , r , v=0 ;
cin >> n ;
m = n ;
while ( m>0 )
{ r = m % 10 ;
m = m / 10 ;
v = v * 10 + r ; }
if ( n==v )
cout << "YES" ;
else
cout << "NO" ;
return 0;
} El Arsa <33
2022-03-29 03:28:22
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n,s,a,d;
cin>>n;
d=n;
s=0;
while(n>0){
a=n%10;
s=s*10+a;
n=n/10;
}
if(s==d){
cout<<"YES";
}
else{
cout<<"NO";
}
}
2022-03-01 09:27:47
#include <bits/stdc++.h>
main ()
{
long long n,a,b,s=0;
scanf("%lld",&n);
b=n;
while(n>0)
{a=n%10;
s=s*10+a;
n=n/10;
}
if(b==s )printf("YES");
else printf("NO");
}
2022-01-02 16:23:07
#include<stdio.h>
int main()
{
int a,b,c=0,d;
scanf("%d",&a);
d=a;
while(a>=1)
{
b=a%10;
c=c*10+b;
a=a/10;
}
if(d==c) printf("YES");
else printf("NO");
}
copy this pls
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.