P1910【语法基础】第二大数 | |
|
Description
有n(n<=200000)组数字,每组数字由三个整数a,b,c(-30000<=a,b,c<=30000)构成,请找出每组数字中第二大的数字。
Input Format
第一行,一个整数n,表示有n组数字
接下来n行,每行三个整数
Output Format
输出n行,每行一个整数,表示每组数字中第二大的。
Sample Input
5
1 2 3
9 9 8
7 5 9
8 7 9
6 6 6
Sample Output
2
9
7
8
6