Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-03-15 07:18:16
temka suga ahhahahahhhhhhhhhhhhhahahhaahaaahahhaha We're no strangers to love You know the rules and so do I A full commitment's what I'm thinking of You wouldn't get this from any other guy I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it And if you ask me how I'm feeling Don't tell me you're too blind to see Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give, never gonna give (Give you up) We've known each other for so long Your heart's been aching but you're too shy to say it Inside we both know what's been going on We know the game and we're gonna play it I just wanna tell you how I'm feeling Gotta make you understand Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye Never gonna tell a lie and hurt you Never gonna give you up Never gonna let you down Never gonna run around and desert you Never gonna make you cry Never gonna say goodbye |
|||||||
2022-03-01 09:20:47
#include <bits/stdc++.h> main () { long long n,a,s=10; scanf("%lld",&n); while(n!=0) {a=n%10; if(s>a) s=a; n=n/10; } printf("%lld",s); } |
|||||||
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); } |