1430: 【C++】比较字符串长度
Memory Limit:32 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:18
Solved:12
Description
输入两个字符串,比较两字符串的长度大小关系。
Input
输入第一行表示测试用例的个数m,接下来m行每行两个字符串A和B,字符串长度不超过50。
Output
输出m行。若两字符串长度相等则输出A is equal long to B;若A比B长,则输出A is longer than B;否则输出A is shorter than B。
Sample Input Copy
2
abc xy
bbb ccc
Sample Output Copy
abc is longer than xy
bbb is equal long to ccc