首页 > ACM题库 > HDU-杭电 > hdu 3877-special sort-排序-[解题报告]hoj
2015
04-13

hdu 3877-special sort-排序-[解题报告]hoj

题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3877

Problem Description
We all know a+b=c,but now there is a new rule in equations:

if a>b,then it’s equal to [>c];
if a=b,then it’s equal to [=c];
if a<b,then it’s equal to [<c];
a sample:

1+1=[=2]
2+0=[>2]
0+2=[<2]
1+2=[<3]

and [>c] > [=c] > [<c].
For every [n],
[n+1] > [n] >[n-1].

 

Input
The input consists of T cases.The first line of the input contains only positive integer T (0<T<=100).