水题
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
int t;
cin >> t;
while(t--)
{
string n, m;
cin >> n >> m;
int temp = 0;
for(int i = 0; i < m.size(); i++)
{
temp = m[i] - 48 + temp*10;
temp %= 11;
}
if(n==m&&temp==0) cout << "YES" << endl;
else cout << "NO" << endl;
}
return 0;
}