Greatest Number

2014-11-24 07:56:24 · 作者: · 浏览: 0

这是校赛的一个水题,很多人都没过,我交了两次才过,大家都没考虑小数型的,题目只是说数字

描述

Recent children YangYang is training mathematical thinking, I am writing three numbers each time, let small YangYang say that which is the greatest number of those numbers.After a few training, small yangyang dizziness, now please you help him.

输入

The first line is an integer N represents the number of the test data set, the following N lines each including three numbers .

输出

The output includes N lines,each line has a number represents the greatest number of the test data set.

样例输入

2
1 2 3
100 200 300

样例输出

3
300
#include
  
   
#include
   
     #include
    
      using namespace std; int main() { int n; double a[10]; scanf("%d",&n); while(n--){ cin>>a[0]>>a[1]>>a[2]; sort(a,a+3); cout<