Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

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-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
2022-03-01 09:03:41
hi girls
2021-10-28 05:07:11
a = int(input())
ans = 0
while a > 0:
b = a % 10
if b > ans:
ans = b
a = a // 10
print(ans)
2021-10-13 07:32:53
# your code goes here
a=int(input())
i=0
s=0
while i<=a:
i=a%10
if s<i:
s=0
s=s+i
a=a//10
print(s)
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.