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
2024-12-03 02:37:53
#include<stdio.h>
main()
{int n,s,d,min;
scanf("%d",&n); s=0;
while(n!=0) { d=n%10; printf("%d",d); n=n/10;}
}
2024-11-26 23:42:55
#include <iostream>
using namespace std;

int main() {

int n,s=0,t=0,x;
cin >> n ;
int max = 0 ,min = 9;
while(n>0){
s=n%10;
max=max * 10+s;
n/=10;
}
cout<<max;
//ryuu bol gci
}
2024-10-30 07:41:22
.



































































































































.

Last edit: 2024-10-30 07:41:39
2024-08-03 12:59:54
#include <iostream>
using namespace std;

int main() {

int n,c;
scanf("%d",&n);
while(n>0){
c=n%10;
n/=10;
printf("%d",c);
}
return 0;
}
2024-05-25 11:09:23
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;
while(temp>0){
tsipr = temp%10;
temp /=10;
reversed = reversed*10+tsipr;
}
System.out.println(reversed);
}
}
2024-05-13 04:12:47
int a,b,s=0;
cin>>a;
while(a>0){
b=a%10;
s=s*10+b;
a=a/10;
}
cout<<s;



huulah
muuhai shuuu
2024-05-13 04:08:51
huulaarai guys
int a,s=0,b;
cin>>a;
while(a>0){
b=a%10;
s=s*10+b;
a=a/10;
}
cout<<s;
2024-05-13 03:44:41
rawr
2024-04-08 07:36:14
#include<stdio.h>
main()
{int n,s,d,min;
scanf("%d",&n); s=0;
while(n!=0) { d=n%10; printf("%d",d); n=n/10;}
}
2024-04-08 07:36:09
#include<stdio.h>
main()
{int n,s,d,min;
scanf("%d",&n); s=0;
while(n!=0) { d=n%10; printf("%d",d); n=n/10;}
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.