Бодолт илгээх | Бүх бодолтууд | Шилдэг бодолтууд | Жагсаалт руу буцах |
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
|
|||||||
2022-12-26 05:23:24
hi tanichin |
|||||||
2022-11-17 06:47:48
#include<bits/stdc++.h> using namespace std; int main(){ int n,x=-1,a,s; cin>>n; a=0; while(n>0){ s=n%10; if(s>x) x=s; n=n/10; } cout<<x<<endl; } ene zov shuu |
|||||||
2022-11-11 03:26:55
https://www.youtube.com/watch?v=dQw4w9WgXcQ |
|||||||
2022-06-30 12:12:44
#include<stdio.h> int a,b=0,c; int main () { scanf("%d",&a); while(a>0) { if(a%10>b) b=a%10; a=a/10; } printf("%d",b); return 0; } |
|||||||
2022-06-10 08:23:01
hi |
|||||||
2022-05-13 14:24:29
int bandaash,tursik=0; cin>>bandaash; while(bandaash>0){ if(bandaash%10>tursik) tursik=bandaash%10; bandaash=bandaash/10; } cout<<tursik; |
|||||||
2022-04-14 05:00:03
#include <iostream> using namespace std; int main() { int ass,i,n,yuve=0; cin>>ass; while(ass>0){ if(ass%10>yuve) yuve=ass%10; ass=ass/10; } cout<<yuve; //ez ooy } |
|||||||
2022-04-05 06:36:03
#include<iostream> using namespace std; int main() { int n,s=0,i; cin>>n; for ( i; n>0; i=1){ if (s<n%10) s=n%10; n=n/10; } cout<< s ; } El Arsa <33 |
|||||||
2022-03-29 08:43:48
#include<bits/stdc++.h> using namespace std; int main() { int n,x=-1,a,s; cin>>n; a=0; while(n>0){ s=n%10; if(s>x){ x=s; } n=n/10; } cout<<x; } for coconut |
|||||||
2022-03-25 17:54:08
#include<iostream> using namespace std; int main(){ int n, digit, tmp = 0; cin >> n; while(0 < n) { digit = n % 10; if(tmp < digit) { tmp = digit; } n = n / 10; } cout << tmp; return 0; } // Huurhun Emuujinen |