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
2024-12-04 03:41:06
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,s=0;
cin>>a;
c=a;
while (a>0)
{
s=s*10+a%10;
a=a/10;
}
if (s==c) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
}
2024-05-25 11:13:07
import java.util.Scanner;

public class main {

public static void main(String[] args) {
System.out.println("too oruul!");
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();//3
//int a=sc.nextInt();

int temp = n;
int reversed = 0;
int tsipr;
int i;
for(i=0;i<=n;i++){
while(temp>0){
tsipr = temp%10;
temp /=10;
reversed = reversed*10+tsipr;
}

}
if(reversed == n){
System.out.println("yes");
}else{
System.out.println("no");
}
}
}
2024-05-22 07:49:52
DumMunsiDeMungi was here
2024-04-25 09:32:52
#include<stdio.h>
main()
{
int a,b,c,d,n,i=100,s=0;;
scanf("%d",&n); a=n;
while (n>0){
s=s*10+n%10;
n=n/10;
}
if(s ==a)
printf("YES");
else
printf("NO");

return 0;
}
huul2
2024-03-24 14:09:13
#include <iostream>
using namespace std;

int main() {

// your code here
int a,b,c,d,n,i=100,s=0;
cin >>n;
a=n;
while (n>0){
s=s*10+n%10;
n=n/10;
}
if(s ==a)
cout << "YES" ;
else
cout << "NO" ;

return 0;
} 2024 NEST8b
2023-12-13 09:55:24
#include <iostream>
#include <string>
#include <algorithm>

bool isPalindrome(const std::string& str) {
std::string reversed = str;
std::reverse(reversed.begin(), reversed.end());
return str == reversed;
}

int main() {
std::string input;

std::cout << "Enter a string: ";
std::cin >> input;

if (isPalindrome(input)) {
std::cout << input << " is a palindrome." << std::endl;
} else {
std::cout << input << " is not a palindrome." << std::endl;
}

return 0;
}
2023-08-22 05:33:11
#include <iostream>
using namespace std;

int main() {

// your code here
int a,b,c,d,n,i=100,s=0;
cin >>n;
a=n;
while (n>0){
s=s*10+n%10;
n=n/10;
}
if(s ==a)
cout << "YES" ;
else
cout << "NO" ;

return 0;
}
2023-05-02 02:22:22
#include<iostream>
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";
}
}
2023-03-15 09:38:57
ci goyyyy
2023-03-13 04:04:51
help me itchsssssssssss
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.