Max của 3 số

View as PDF

Submit solution

Points: 0.01
Time limit: 1.0s
Memory limit: 64M
Input: stdin
Output: stdout

Authors:
Problem type

Viết chương trình để tìm số lớn nhất trong ba số a, b, c.

Input

Một dòng duy nhất chứa 3 số nguyên a, b, c

Output

Một dòng duy nhất là số lớn nhất trong 3 số

Examples

Input

9 2 6

Output

9 

Comments

Please read the guidelines before commenting.



  • 0
    chieuminhdeptrai  commented on Sept. 18, 2025, 1:56 p.m.

    include <iostream>

    using namespace std;

    int main() { int a, b, c; cin >> a >> b >> c; int n = max(a, max(b, c)); cout << n; return 0; }