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
2022-01-02 16:07:14
#include<stdio.h>
int main()
{
int a,b,s=0;
scanf("%d",&a);
while(a>=1)
{
b=a%10;
s=s*10+b;
a=a/10;
}
printf("%d",s);
}
copy this pls kkk
2021-11-18 22:51:30
int a,b,c,d;
Scanner sc=new Scanner(System.in);
a=sc.nextInt();
while(a>0) {
b=a%10;
a=a/10;

if(b>0) {

}
System.out.print(b);
}
2021-04-24 08:56:51
#include <stdio.h>
#include<math.h>1
int main(){
int a, b, c, d,x=0;
scanf("%d", &a);
while(a>0){
b=a%10;
if(b>0){
printf("%d",b);
}
a=a/10;
}
}
Ez
2021-04-23 19:41:04
#include <stdio.h>
main()
{
int n,n2;
scanf("%d",&n);
while(n>0)
{
n2=n%10;
printf("%d",n2);
n/=10;
}
}
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.