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
2019-11-02 05:41:49
sukasukasuaksuaksuaksuaka
2019-10-29 08:43:49
#include <iostream>

using namespace std;

int main(){
int a,d,f=0;
cin>>a;
while(a>0){
d=a%10; a=a/10;
if(d>f){
f=d;
}
}
cout<<f<<endl;
return 0;
}mo huul
2019-10-21 13:47:31
#include <iostream>
using namespace std;
int main()
{
int a,d,f=0;
cin >> a ;
while (a>0)
{
d=a%10;
a=a/10;
if(d>f) f=d;
}
cout << f ;
return 0;
}
2018-10-18 08:26:48


Last edit: 2018-10-18 08:27:44
2018-09-30 06:21:51
#include <cstdio>

int main()
{
int a,d,f=0;
scanf("%d",&a);
while (a>0)
{
d=a%10;
a=a/10;
if(d>f) f=d;
}
printf("%d",f);
return 0;
}
2018-09-30 06:21:43
#include <cstdio>

int main()
{
int a,d,f=0;
scanf("%d",&a);
while (a>0)
{
d=a%10;
a=a/10;
if(d>f) f=d;
}
printf("%d",f);
return 0;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.