#53715: answer for cpp (seriously you don't need too much code)


1131225@stu.wghs.tp.edu.tw (八禮25李昀鴻Jason)

學校 : 不指定學校
編號 : 321053
來源 : []
最後登入時間 :
2025-09-12 15:19:38

For cpp users:

You must know the sequence will always be a<b<c

#include<iostream>
using namespace std;
int main(){
  long long a,b,c;
  cin >> a >> b >> c;
  if (a+b<c){
    cout << c;
  }else if (a+b>c){
    cout << b;
  }
}