Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
||||||||
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 |
||||||||
2019-10-06 08:55:35
#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-06 08:46:21
hahahahahaha lol gg |
||||||||
2019-10-06 08:45:51
lol |
||||||||
2019-10-06 08:45:34
#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-06 08:55:52 |