MAXNUM - Tìm số lớn nhất trong xâu

View as PDF

Submit solution

Points: 2.00 (partial)
Time limit: 0.07s
Memory limit: 256M

Author:
Problem types
Allowed languages
C, C#, C++, Go, Java, Pascal, Perl, PHP, Python, Ruby, Rust, Scratch, Swift

Hãy lập trình ra 1 chương trình tìm ra số lớn nhất ở trong xâu !!

Input

1 Dòng chứa xâu str có độ dài không quá 1000 chữ số

Output

Số lớn nhất ở trong xâu đó

Sample

Input #1
Abc1234ef99gH0
Output #1
1234

Hint

Ở test 1: Có 3 số : 1234;99;0 nên số lớn nhất là 1234

Problem source: apok


Comments

Please read the guidelines before commenting.



  • 1
    404  commented on Dec. 5, 2024, 6:37 a.m. edited

    test 11 là gì vậy mn? à là số âm =))