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
2025-08-14 07:24:32
mini nzud l shn uyrhereii bi law brhgun bno
2025-08-14 07:23:38
battushigeee shh naad ohinoo toochocchde hetsunbee uahahhah
2025-08-14 07:17:24
chinguun huslen 2 taarsan tag gulgnud
2025-08-14 07:16:20
huslen tag llr ergu mal ats
2025-06-25 07:12:31
ene ng battushige ni toocooc dee naad ng ohin cn argaa baraad coding websiten dr irj hair zarlaj bn shdeee ahahahahah
2025-04-16 10:39:34
#include<bits/stdc++.h>
using namespace std;
int main() {
int n, s, d, min;

cin >> d;
s = 0;
min = d;
while (d > 0) {
n = d % 10;
s = s * 10 + n;
d = d / 10;
}
if (min == s) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
}//bunzaa bol yankana chi bur tag al
2025-02-19 02:56:05
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int n, s, d, min;

cin >> d;
s = 0;
min = d;
while (d > 0) {
n = d % 10;
s = s * 10 + n;
d = d / 10;
}
if (min == s) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2025-02-19 02:56:01
#include <iostream>
#include <sstream>
#include <string>
#include <cstdlib>
#include <cmath>

using namespace std;

// Headers
string toString (double);
int toInt (string);
double toDouble (string);

int main() {
int n, s, d, min;

cin >> d;
s = 0;
min = d;
while (d > 0) {
n = d % 10;
s = s * 10 + n;
d = d / 10;
}
if (min == s) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
}

// The following implements type conversion functions.
string toString (double value) { //int also
stringstream temp;
temp << value;
return temp.str();
}

int toInt (string text) {
return atoi(text.c_str());
}

double toDouble (string text) {
return atof(text.c_str());
}
2025-02-04 05:03:12
battushigee bi chamd odoo hurtel sain shde ygaad namaig oilgodoggui ym be esvel bi chinii type boloh ystoi yu
2025-01-25 06:12:00
#include<iostream>
using namespace std;
int main ()
{
int a,b=0,c;
cin>>a;
c=a;
while(a>0){
b=b*10+a%10;
a/=10;
}

if(c==b){ cout<<"YES"<<endl;}
else {cout<<"NO"<<endl;}
return 0;
}//zzo amjilt
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.