求助
查看原帖
求助
559506
RJSPZ楼主2022/11/24 13:33
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    for (int i = 1; i <= n; i++)
    {
        int a, b, c, d, e, f, sum = 0;
        scanf("%d%d%d",&a,&b,&c);
        for (int j = 0; j < a; j++)
        {
            scanf("%d%d%d",&d,&e,&f);
            sum ^= abs(e-f) - 1;
        }
        if(sum){
            puts("Yes");
        }
        else{
            puts("No");
        }
    }
    return 0;
}
2022/11/24 13:33
加载中...