Universal Cup Judging System

Universal Cup

حد الوقت: 1.0 s حد الذاكرة: 1024 MB مجموع النقاط: 100 قابلة للهجوم ✓
الإحصائيات

Gitt heltallene $a, b, c$ kan du hver gang utføre en av følgende operasjoner:

  • $a \leftarrow a + b$
  • $a \leftarrow a \oplus b$

der $\oplus$ representerer den binære XOR-operasjonen.

Du kan utføre et hvilket som helst antall operasjoner, og du vil vite om du til slutt kan gjøre $a$ lik $c$.

Inndata

Et enkelt testtilfelle inneholder flere datasett.

Den første linjen i inndataene er antall datasett $T$ ($1 \le T \le 10^3$), som representerer antall datasett i dette testtilfellet.

For hvert datasett er det en linje med tre heltall $a, b, c$ ($0 \le a, c \le 10^{18}, 1 \le b \le 1000$).

Det er garantert at i et enkelt testtilfelle er $\sum b^2 \le 10^6$.

Utdata

For hvert datasett, hvis det er mulig å til slutt gjøre $a$ lik $c$, skriv ut "YES"; ellers, skriv ut "NO".

Eksempler

Inndata 1

5
1 6 7
7 5 13
8 3 16
7 6 17
2 7 8

Utdata 1

YES
NO
YES
YES
NO

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.