Chữ số lớn nhất

View as PDF



Problem type
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points: 3 (p) Time limit: 1.0s Memory limit: 100M Input: stdin Output: stdout

Cho số nguyên N (0 < N < \(2.10^9\)).

Yêu cầu:

Tìm chữ số lớn nhất trong số đó.

Dữ liệu vào:

Ghi một số nguyên dương N

Dữ liệu ra:

Ghi ra chữ số tìm được

Sample
Input
23434796
Output
9

Comments

Most recent
Loading comments...

There are no comments at the moment.