All submissions for this problem are available.
Three numbers A, B and C are the inputs. Write a program to find second largest among three numbers.
The first line contains an integer T, total number of testcases. Then follow T lines, each line contains three integers A, B and C.
Display the second largest among A, B and C.
- 1 ≤ T ≤ 1000
- 1 ≤ A,B,C ≤ 1000000
Input 3 120 11 400 10213 312 10 10 3 450 Output 120 312 10
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.