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

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
2025-06-28 06:08:24
sigma sigma boy sigma boy sigma boy

2025-02-19 02:53:34
#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 a, i, max;

cin >> a;
max = 10;
while (a > 0) {
i = a % 10;
if (i < max) {
max = i;
}
a = a / 10;
}
cout << max << 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-29 06:21:54
senorita excuse me
2025-01-23 14:49:17
#include<iostream>
using namespace std;
int main ()
{
int a,min;
cin>>a;
min=9;
while(a>0){
if (min>a%10){
min=a%10;
}
a/=10;
}
cout<<min;
}//zzo amjilt
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."
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.