Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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-12-04 13:06:57
ryuu bol gci gj hein |
||||||||
2024-12-03 02:37:10
#include<stdio.h> int main (){ int i,n,a[100],x,s=0; scanf("%d",&n); for(i=1;i<=n;i++){ scanf("%d",&a[i]); } scanf ("%d",&x); i=1; while(s==0 && i<=n){if(a[i]==x) s++; else i++; } if(s==1) printf("YES"); else printf("NO"); return 0; } |
||||||||
2024-12-03 02:36:36
#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-11-26 23:27:17
#include <iostream> using namespace std; int main() { int n,s=0,t=0,x; cin >> n ; int max = 0 ; while(n>0){ s=n%10; if(s>max){ max = s; } n/=10; } cout<<max; //ryuu bol gci } |
||||||||
2024-11-22 01:09:20
SAIN NOMIO CI SAINUU |
||||||||
2024-11-22 01:07:55
NAZU SAINUU |
||||||||
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 |