Chữ số lớn nhất

View as PDF

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

There are no comments at the moment.