Created
November 21, 2022 17:42
-
-
Save qjatn0120/97acffc9f5ef5b11c114de164ca1c6cc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <bits/stdc++.h> | |
using namespace std; | |
int main(){ | |
cin.tie(nullptr), ios::sync_with_stdio(false); | |
int t, arr[3]; | |
cin >> t; | |
while(t--){ | |
for(int i = 0; i < 3; i++) cin >> arr[i]; | |
sort(arr, arr + 3); | |
cout << arr[1] << "\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment