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.|

RGB7308 - Тонгорогсон тоо

Өгөгдсөн тооны тонгорогсон тоог ол.

Input

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

Output

Тонгорогсон тоо.

Example

Input:
1234

Output:
4321

Нэмсэн: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-07 06:41:07
#include <stdio.h>
#include<math.h>
main(){
int a, d, f=0, c=0;
scanf("%d", &a);
while(a >0){
d = a%10;
a = a/10;
if(d>f||d<f){
f=d;
printf("%d", f);
}
}

}
Ez
2020-06-22 03:49:25


.
2020-01-29 02:47:28
#include <iostream>
using namespace std;
int main() {
int a,b,s=0;
cin>>a;
while(a>0){
b=a%10;
a=a/10;
s=s*10+b;}
cout<<s<<endl;
return 0;
}
2020-01-21 14:58:37
#include <stdio.h>
int a,b,s=0;
int main(void) {
// your code here
scanf("%d",&a);
while(a>0){
b=a%10;
a=a/10;
s=s*10+b;
}
printf("%d",s);
return 0;
}
2018-11-27 03:17:05
#include<iostream>
using namespace std;

int main()
{
int n,t,r,rev=0;
cin>>n;
t=n;
while(t>0)
{
r=t%10;
t=t/10;
rev=rev*10+r;
}
cout<<rev;


return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.