问题2717--An easy problem

2717: An easy problem

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

When we regrest an ID on the OJ(online judgement system).We must input our password twice.The computer will judge wheather the two passwords are the same.Your task is to help us write a program which will tell wheather the two passwords are the same.

输入

The first line of input is a sigle integer N which will tell the number of tests.Then where will be N lines followed. Each line will contain two words separated by a space.The passwords will not have space/tab or other special charactor. The length of passwords will shorter than 100.

输出

There will be one line of each testcase.Out out "YES" if they are correct;"NO" otherwise.

样例输入 Copy

2
aaaaaa aaaaaa
I_am_a_password I_an_a_password

样例输出 Copy

YES
NO

来源/分类