#1856: a021 answer but use #include<algorithm>


1753422-4@g.puiching.edu.mo (P5A30廖善衡)

School : No School
ID : 2950
IP address : [192.168.120.33]
Last Login :
2025-03-20 11:41:41
a021. 三人行必有我師 | From: [192.168.120.33] | Post Date : 2025-03-20 22:11

#include <iostream>

#include <algorithm>

using namespace std;

 

int main() {

    int a, b, c;

    cin >> a >> b >> c;

 

    int maxValue = max({a, b, c});

 

    cout << maxValue << endl;

 

    return 0;

}

 
ZeroJudge Forum