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
2023-12-01 05:34:12
tushig zurh zurh
2023-11-06 08:26:08
#include<stdio.h>
main(){
int a,b,c,d,s,i;
scanf("%d", &a);
d=10;
i=1;
while(i<=a){
s=a/i;
c=s%10;
if(c<d){
d=c;
i=i*10;
}
else{
i=i*10;
}
}
printf("%d",d);
}

2023-10-24 04:01:31
za
2023-03-02 03:20:02
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s;
cin>>s;
sort(s.begin(),s.end());
cout<<s[0];
}
2022-11-21 01:16:35
jamal bna goy comment ugure
2022-11-17 06:30:08
bi suvdaa bainaa goy comment ogoorei pls :)
2022-10-19 04:17:46
#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);
}

Last edit: 2022-10-19 04:18:04
2022-04-05 06:51:57
#include<iostream>
using namespace std;
int main()
{
int n,m,s;
cin>>n;
s=9;
while(n>0){
m=n%10;
if(s>m){
s=m; }
n=n/10; }
cout<<s;
return 0;
} El Arsa <33
2022-03-30 08:07:08
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,s,d,f,g,h,mi=10;
cin>>d;
while(d>0){
f=(d%10);
if(mi>f) mi=f;
d=d/10;
}
cout<<mi;
}
2022-03-15 09:07:05
Ananda bitii huulaad baildaa ARAI2
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.