Untitled

mail@pastecode.io avatar
unknown
c_cpp
2 years ago
299 B
1
Indexable
Never
#include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
    int dist[3];
    for(int i=0; i<3; i++){
        cin>>dist[i];
    }
    int maX=dist[0];
    for(int i=1; i<3; i++){
        if(maX<=dist[i]){
            maX=dist[i];
        }
    }
    cout<<maX<<endl;
}

}