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-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)
2021-04-15 17:02:31
if(b>f) f=b ene yu gsen ug ve
2021-01-17 12:38:20
amariin bichseniig huulku dagaj bichne hahahahaa
2020-12-30 04:44:38
#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;
}
Amariin bichseniig noob huuldag gehdee zov
2020-07-16 10:54:29
import java.util.*;
import java.lang.*;

class Main
{
public static void main (String[] args) throws java.lang.Exception
{
Scanner sc = new Scanner(System.in);
int h;
int max = 0;
int n = sc.nextInt();

while (n > 0) {
h = n % 10;
n = n / 10;

if (h > max) {
max = h;
}
}
System.out.println(max);
}
}
2019-12-09 07:32:22
oK bOoMeR
2019-12-04 09:32:35
stop copying mee
2019-12-04 09:32:34
natasha
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.