库函数三元运算符
#include <iostream> using namespace std; int main() { int a,b,c; cin >> a >> b >> c; int res = max(a,b) > max(b,c) ? max(a,b) : max(b,c); cout << res << " eh o maior" << endl; return 0; }