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
2022-01-02 16:08:11
#include<stdio.h>
int main()
{
int a,b,c=0;
scanf("%d",&a);
while(a>=1)
{
if(c<a%10) c=a%10;
a=a/10;
}
printf("%d",c);
}
copy this pls
2021-10-28 05:32:19
a = int(input())
ans = 9
while a > 0:
c = a % 10 #9
if ans > c:
ans = c
a = a // 10
print(ans)
# in python :)))
2021-10-13 12:39:45
#include <iostream>
using namespace std;
// RGB7307 - Тоон дахь бага цифр
int main() {
int n,min=9;
cin >> n ;
while(n > 0){
if(min > n%10){
min=n%10;
}
n=n/10;
}
cout << min;
return 0;
}
2021-05-10 12:47:18




















































































































d

h




a
dgs
gs











S
H

G
SG
S
G
G
SGG
G
SG
G
GS
GS
G
2020-11-13 13:09:06
#include <iostream>
using namespace std;
int main()
{
int x,s,a,b;
cin>>x;
s=9;
while(x>0){
a=x%10;
if(s>a){
s=a;
}
x=x/10;
}
cout<<s<<endl;
return 0;
}
tg zuv
2020-09-09 07:14:39
#include <iostream>
using namespace std;
int main()
{
int x,s,a,b;
cin>>x;
s=9;
while(x>0){
a=x%10;
if(s>a){
s=a;
}
x=x/10;
}
cout<<s;
}
2019-11-16 07:39:59
#include <cstdio>
int main () {
int a ;
scanf("%d" , &a);
int baga =10;
while(a >0){
if(a%10 <=baga) baga = a%10;
a/=10;

}
printf("%d" , baga);
}
SUPER
2019-11-16 07:28:12
#include<cstdio>
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);
}
2019-10-28 03:43:20
#include<cstdio>
int main(){
int n;
scanf("%d",&n);
int s=10;
while(n>10){
if(n%10<s){
s=n%10;
}
n/=10
}
printf("%d", s)
}
2019-10-14 08:11:10
#include<cstdio>
int main(){
int n;
scanf("%d",&n);
int s=10;
while(n>10){
if(n%10<s){
s=n%10;
}
n/=10
}
printf("%d", s)
}

Last edit: 2019-10-14 08:11:22
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.