【題解】ZeroJudge d065: 三人行必有我師

【題目敘述】https://zerojudge.tw/ShowProblem?problemid=d065

#include <iostream>
using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b >> c;
    
    int mx;
    mx = a;
    if (b > mx) mx = b;
    if (c > mx) mx = c;
    
    cout << mx << "\n";
    return 0;
}
分享本文 Share with friends