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
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
2019-12-04 09:32:11
ok boomer
2019-12-04 09:31:29
ok boomer

Last edit: 2019-12-04 09:32:21
2019-12-02 09:15:25
#include<bits/stdc++.h>
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;
}
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.