aboutsummaryrefslogtreecommitdiff
path: root/codechef/chefAndSpells/chefAndSpells.cpp
blob: c05253d6bb61967fd2a392520d293a0a59d79403 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include<bits/stdc++.h>

using namespace std;

int main () {
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	int tt;
	cin >> tt;
	while(tt--){
    vector<int> v(3);
    for(int &x : v) cin >> x;
    sort(v.begin(), v.end());
    cout << v[1] + v[2] << '\n';
	}
}