Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||||
2025-04-16 10:32:29
#include<bits/stdc++.h> using namespace std; int main (){ int a,b; cin>>a; b=0; while(a>0){ b=b*10+a%10; a=a/10; }cout<<b; return 0; }//bunzaa bol lalar |
||||||||||
2025-02-19 02:54:39
#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; while (d > 0) { n = d % 10; s = s * 10 + n; d = d / 10; } cout << s << 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-01-24 16:30:07
#include<iostream> using namespace std; int main (){ int a,b; cin>>a; b=0; while(a>0){ b=b*10+a%10; a=a/10; }cout<<b; return 0; }//zzo amjilt |
||||||||||
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; |