#include <iostream>
using namespace std;
int Last2(int x)
{
if(x>=100)
return x%100;
else
return x;
}
int main()
{
int T;
cin>>T;
while(T--)
{
int x,y;
cin>>x>>y;
cout<<Last2(Last2(x)+Last2(y))<<endl;
}
}
tips:终于有一题一次AC了。拯救了我的自信心。