Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7307 - Тоон дахь бага цифр |
Өгөгдсөн тоон дахь бага цифрийг ол.
Input
Бүхэл тоо өгөгдөнө.
Output
Бага цифр
Example
Input: 9649 Output: 4
Нэмсэн: | 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-11-26 23:30:47
#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; if(s<min){ min = s; } n/=10; } cout<<min; //ryuu bol gci } |
|||||||
2024-08-07 06:12:27
hauhksahuAHHFJJILFJIUHFIBH BDHWBIULWLHNUHVIJBHUHGRJNJK,SHDHUISABJKBGKRHURJ.SHNDHNJKINKKDBSHHIUEKJNJKDCHUIDFSNKFSHHSIHKJBSJDJKFDDHSHBASBGUJHWILAHUIWHJWIAUHUIDSJFKJISOYIREJNGUJIGFBJGKG,UIODALHFIUOGAIKBJFUDSUFESLBUIHJGRHUJDHBJ |
|||||||
2024-06-06 02:06:19
#include <iostream> using namespace std; int main() { int n; cin >> n; int s = 10; while (n > 0) { if (n % 10 < s) { s = n % 10; } n /= 10; } cout << s; return 0; } huul suguudaa |
|||||||
2024-06-05 07:46:30
Zoloo dajgui thin hehe ILoVe YoU |
|||||||
2024-05-25 11:07:39
huul: 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 sum=temp; int tsipr; while(temp>0){ tsipr = temp%10; temp /=10; if(tsipr<sum){ sum = tsipr; } } System.out.println(sum); } } |
|||||||
2024-05-20 06:25:34
"That darn no good son of a gun named Jamal isn't doing his work! Honey, get my whip." |
|||||||
2024-03-24 14:07:34
#include<stdio.h> int main(){ int n; scanf("%d",&n); int s=10; while(n>0){ if(n%10<s){ s=n%10; } n/=10; } printf("%d", s); } mai suguda hahha |
|||||||
2024-03-06 05:13:45
b0nita hurhunn ahahahaaaa |
|||||||
2024-03-06 05:13:18
uhauhauhauhau |
|||||||
2024-01-09 08:33:17
8==э |