Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
RGB7306 - Тоон дахь их цифр |
Өгөгдсөн тооны их цифрийг ол.
Input
Бүхэл тоо өгөгдөнө.
Output
Их цифр.
Example
Input: 4632 Output: 6
Нэмсэн: | 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
|
|||||||
2024-06-26 09:39:45
#include<iostream> using namespace std; int main () { int n,s,i; cin>>n; s=0; for (int i; n>0; i=1){ if (s<n%10) s=n%10; n=n/10; } cout<<s; } |
|||||||
2024-06-05 04:31:47
⠀⢀⣤⢤⡀⠀⠀⠀⠀⠀⠀⠀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡀⠀⠀⠀⢀⣀⣀⣀⡤⢤⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣀⣀⣀⣀⣀⣀⣀⠀⠀⠀ ⠀⢸⠀⠀⢹⠀⠀⠀⠀⠀⠀⢸⠃⠈⢹⠀⠀⢸⡛⠏⠙⢦⡀⠀⠀⠀⠀⠀⠀⢀⡔⠋⡟⡧⠀⠀⡟⠁⠙⢛⣁⠀⠀⠈⠛⢦⡀⠀⠀⠀⠀⣰⠛⠋⠉⠁⠀⠀⠀⠀⠀⠈⣷⠀⠀ ⠀⠸⠀⠀⢸⠀⠀⠀⠀⠀⠀⡼⠀⠀⢸⠀⠀⠀⠳⡀⠀⠀⠙⢦⠀⠀⠀⢀⡴⠋⠀⢀⡞⠁⠀⠀⡇⠀⠀⢸⠉⠉⠓⢢⡀⠀⢳⠀⠀⠀⠀⢻⠀⠀⡖⠒⠒⠒⠒⠒⠒⠚⠁⠀⠀ ⠀⠀⠀⠀⢸⡀⠀⠀⠀⠀⠀⡇⠀⠀⢸⠀⠀⠀⠀⠙⢦⠀⠀⠀⠑⣤⠴⠋⠀⠀⣰⠋⠀⠀⠀⠀⡇⠀⠀⣿⠀⠀⠀⠀⡧⠀⠸⡆⠀⠀⠀⢸⠀⠀⠳⠤⠤⠤⠤⠤⣄⡀⠀⠀⠀ ⠀⠀⠀⠀⠀⠉⠉⠉⠉⠉⠉⠁⠀⠀⢸⡄⠀⠀⠀⠀⠀⠱⣄⠀⠀⠀⠁⠀⢀⡜⠁⠀⠀⠀⠀⠀⡇⠀⠀⣇⣀⣀⣠⠴⠃⠀⢰⠃⢀⣀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⣠⠇⠀⠀⠀ ⠀⠀⠀⠀⢠⡖⠢⠤⠤⠤⢤⡀⠀⠀⢸⠀⣤⣴⣶⣦⣄⠀⠘⡆⠀⠀⠀⢠⠏⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⢀⣠⠴⢃⣾⣿⣿⣿⢸⠀⠀⣼⠉⠉⠉⠉⠉⠉⠀⠀⠀⠀ ⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠈⡇⠀⠀⢸⡄⣿⠟⠙⢿⣿⣧⠀⡇⠀⠀⠀⢹⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣴⠒⠚⠋⠉⢀⣴⣿⣿⠟⢁⡜⢸⠀⠀⠹⣄⣀⣀⣀⣀⣀⡀⠀⠀⠀ ⠀⡆⠀⠀⢸⡇⠀⠀⠀⠀⠀⡇⠀⠀⢸⠇⡏⠸⡆⠀⢻⣿⡇⣇⠀⠀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⣸⠀⠀⠀⢠⣾⣿⡿⠁⠀⣾⠸⡸⡆⠀⠀⠀⠀⠉⠉⠁⠀⠉⡇⠀⠀ ⠀⢳⡀⠀⣼⠀⠀⠀⠀⠀⠀⠳⠤⠤⢞⡼⠁⠀⣷⠀⠀⢻⣧⢿⠀⠀⢀⡟⠀⠀⠀⠀⠀⠀⠀⠀⢳⣐⣠⠎⠀⠀⣠⣿⣿⡟⠀⠀⢰⡇⠀⠳⣝⠦⠤⣀⣀⣀⣀⣀⣀⡴⠃⠀⠀ ⠀⠀⠉⠉⠁⠀⠀⠀⠀⠀⣰⣿⣷⢞⠞⠀⠀⠀⢸⠀⠀⠀⢻⣮⣓⠒⠊⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⠏⠀⠀⠀⣾⠀⠀⠀⠈⠹⡰⣶⣦⠀⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⣰⣿⣿⢋⡞⠀⠀⠀⠀⢸⡇⠀⠀⠀⢻⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣀⠀⠀⠀⣼⣿⣿⠃⠀⠀⠀⢠⡇⠀⠀⠀⠀⠀⢣⢻⣿⣧⠀⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⠀⢰⣿⣿⠃⡜⠀⠀⠀⠀⠀⠘⡇⠀⠀⠀⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣾⣿⣿⠇⠀⠀⠀⠀⢸⡇⠀⠀⠀⠀⠀⠘⡎⣿⣿⡆⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⢀⣿⣿⠇⡞⠀⠀⠠⣾⠛⠲⣤⣇⠀⠀⠀⠀⠀⠉⣹⠈⠉⠉⢻⠉⠉⠙⡿⠛⠛⠛⡟⠛⠋⠉⠀⠀⠀⠀⠀⣾⡴⠚⡇⠀⠀⠀⠀⢣⢸⣿⣷⠀⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⠀⣼⣿⡟⢸⠀⠀⣠⡶⠚⠓⠀⠀⠉⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⡼⠀⠀⠀⡇⠀⠀⠀⢹⠀⠀⠀⠀⠀⠀⠀⠀⠉⠀⠀⠗⠒⠦⡀⠀⠸⡈⣿⣿⡆⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⢰⣿⡿⠀⢈⠀⣼⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣧⠀⠀⢠⠇⠀⠀⠀⢳⡀⠀⢀⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠙⣄⣠⠇⢹⣿⣇⠀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⠀⣾⣿⠃⠀⠈⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⠴⠋⠀⠀⠀⠀⠀⠓⠦⠞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⣿⣿⡀⠀⠀⠀⠀ ⠀⠀⠀⠀⠀⢸⣿⡟⠀⠀⠀⠀⠀⠀⠀⠀⣤⣤⣤⣄⡀⠀⠀⠀⠀⠀⠀⠀⢀⣀⠀⠀⠀⠀⢀⣀⡀⠀⠀⠀⠀⠀⢀⣀⣀⣀⣠⣴⣶⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⡇⠀⠀⠀⠀ ⠀⠀⠀⣀⣀⣸⣿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠻⣿⣿⣿⣶⡄⣠⠴⠚⠉⠁⠀⠀⠀⠀⠀⠀⠀⠈⠑⢦⡀⠀⣿⣿⣿⣿⣿⡟⠛⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠿⣿⣷⡄⠀⠀ ⠀⠀⣿⣿⡿⠿⠿⠷⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⡿⠏⠁⠀⣸⡄⠀⠀⠀⠀⡄⠀⠀⠀⠀⣦⠀⠙⢆⠈⠛⢿⣿⣿⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⠀⠀ ⠀⠀⣹⣿⣧⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⢨⣿⣿⣿⡿⠛⢉⠎⠀⠀⣴⠏⠻⢦⣤⡴⠞⠻⢶⣤⣤⣤⡿⢷⡄⠈⢧⠀⠀⠈⠻⢿⡿⠁⠀⠀⠀⠀⠀⠀⠀⢀⣠⣤⣶⣿⣿⣷⣆⠀ ⢠⣴⣿⠟⠋⠉⠛⠷⣦⣀⠀⠀⠀⠀⠀⠈⠛⠛⠁⠀⠀⡜⠀⠀⣼⠏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢻⡄⠈⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⣿⠿⠛⠉⠉⠉⢹⣿⡄ ⢸⣿⡏⠀⠀⣀⣀⡀⠀⠙⢷⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⢠⡟⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⡇⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣴⡿⠋⢁⡠⢤⣀⠀⠀⠀⣿⣧ ⢸⣿⠀⢰⠋⠀⠀⠈⢳⡀⠀⠙⢷⣄⠀⠀⠀⠀⠀⠀⠀⢧⠀⠘⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⡇⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⣴⡿⠋⠀⡰⠋⠀⠀⠈⢣⠀⠀⣿⣿ ⢸⣿⠀⢸⠀⠀⠀⠀⢀⠇⠀⠀⠀⠹⣦⡀⠀⠀⠀⠀⠀⠸⡄⠀⠻⣆⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡿⠀⠀⡎⠀⠀⠀⠀⠀⠀⢠⣾⠏⠀⠀⠀⣇⠀⠀⠀⠀⢸⠀⠀⣿⣿ ⢸⣿⠀⠀⠑⢄⣀⡠⠊⠀⠀⠀⠀⠀⠘⢷⡀⠀⠀⠀⠀⠀⠱⣄⠀⠙⠳⢤⣀⠀⠀⠀⠀⠀⢀⣀⣤⡾⠛⠁⢀⠜⠀⠀⠀⠀⠀⠀⣰⠟⠁⠀⠀⠀⠀⠈⠲⠤⠤⠤⠎⠀⢠⣿⣿ ⢸⣿⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⢷⡄⠀⠀⠀⠀⠀⠈⠳⢄⡀⠀⠈⠉⠉⠉⠉⠉⠉⠉⠀⠀⢀⠴⠋⠀⠀⠀⠀⠀⠀⡼⠃⢠⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⡿ ⢸⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⠈⢷⡀⠀⠀⠀⠀⠀⠀⠀⠉⠒⠦⢤⣀⣀⣀⣀⣠⠤⠔⠊⠁⠀⠀⠀⠀⠀⠀⢀⠾⡀⠀⢸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣾⣿⡇ ⠸⣿⣇⠳⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡎⠀⠘⡞⢦⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡔⠁⠀⢣⠀⠈⢆⡀⠀⠀⠀⠀⠀⠀⠀⢀⡠⢫⣿⣿⠁ ⠀⣿⣿⡀⠈⠓⠄⠀⠀⠀⠀⠀⠀⠀⠞⠀⠀⡼⠁⠀⠙⠑⠒⠦⠤⣀⣀⣀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⠀⠀⢀⠤⠔⠋⠀⠀⠀⠈⢧⠀⠀⠉⠂⠀⠀⠀⠀⠀⠒⠉⠀⣼⣿⠇⠀ ⠀⢸⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡜⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠳⣈⠑⣄⠀⢀⡤⠔⠊⠁⠧⣠⠏⠀⠀⠀⠀⠀⠀⠀⠀⠑⢄⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡿⠀⠀ ⠀⠀⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⣠⠖⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠒⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠑⢤⡀⠀⠀⠀⠀⠀⠀⣼⣿⠃⠀⠀ ⠀⠀⠸⣿⣿⣄⣀⣀⣀⡤⠴⠒⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠓⠦⢤⣀⣀⣰⣿⡏⠀⠀⠀ ⠀⠀⠀⢻⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⡿⠁⠀⠀⠀ |
|||||||
2024-05-16 04:36:56
hi yu bnda bro |
|||||||
2023-11-16 06:54:33
include <bits/stdc++.h> using namespace std; int main(){int n,k=0,l;cin>> n;int m=n%10;while(n>0){l=n%10;if(l>m) m=l; cout<<m; break;}} Last edit: 2023-11-16 06:59:18 |
|||||||
2023-08-22 06:39:44
noob #include <iostream> using namespace std; int main() { int a,b,d,f,n,s=0,q,w,e,t,i,z=0,pp=0; cin>>n; while(n>0) { if(s<n%10) s=n%10; n=n/10; } cout<<s; } |
|||||||
2023-07-12 12:26:09
#include<iostream> using namespace std; main() { int n, a, s=0; cin>>n; while(n>0) { if(s<n%10) s=n%10; n=n/10; } cout<<s; } |
|||||||
2023-06-13 12:46:23
#include <iostream> #include <string> using namespace std; int main() { string str; int biggest; cin >> str; biggest = int(str[0]); for(int i = 0; i < str.size(); i++) { if(biggest < int(str[i])) { biggest = int(str[i]); } } cout << biggest - 48; return 0; } |
|||||||
2023-05-01 04:36:14
jonkook is gay |
|||||||
2023-05-01 04:14:35
JUNGKOOK<3<3<3 |
|||||||
2022-12-27 16:42:57
#include<iostream> using namespace std; main() { int n, a, s=0; cin>>n; while(n>0) { if(s<n%10) s=n%10; n=n/10; } cout<<s; } |