mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
492bdd03ea
1800-1899
20 lines
309 B
C++
20 lines
309 B
C++
#include<iostream>
|
|
using namespace std;
|
|
int main()
|
|
{
|
|
int c,n,m,l;
|
|
cin>>c;
|
|
while(c--)
|
|
{
|
|
cin>>n;
|
|
int s=0;
|
|
for(int i=0;i<n;++i)
|
|
{
|
|
cin>>m>>l;
|
|
s^=m%(l+1);
|
|
}
|
|
cout<<(s?"No":"Yes")<<endl;
|
|
}
|
|
return 0;
|
|
}
|