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
2021-04-16 16:10:09
#include<stdio.h>
int main()
{
long long a,b=0,c;
scanf("%lld",&a);
a=c;
while(a>0)
{
b=10*b+a%10;
a=a/10;
}
if(c==b) printf("YES");
else printf("NO");
return 0;
}
where is aldaa
2021-01-29 14:42:46
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m,a;
cin>>n;
a = n;
while(n>0){
m = m * 10 + n % 10;
n/=10;
}
if(a == m){
cout<<"YES";
}else{
cout<<"NO";
}
}
za odoo huuldaa
2020-12-26 16:08:44
#include<stdio.h>
main()
{
int i,r,n,t,p=0;
scanf("%d",&n);
t=n;
while(n>0)
{
r=n%10;
p=p*10+r;
n/=10;
}
if(t==p)
printf("YES");
else printf("NO");
}
ez suguuda mZa


Last edit: 2020-12-26 16:09:44
2020-01-13 05:04:37
ez

2020-01-08 04:09:59
#include<iostream>
using namespace std;

int main()
{
int n,t,r,v=0;
cin>>n;
t=n;
while(t>0)
{
r=t%10;
t=t/10;
v=v*10+r;
}
if(n==v) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
2020-01-02 03:25:06
er3fc
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.