P10372 [AHOI2024 Junior / USTC Guochuang Cup Junior 2024] Homework
Background
**The testdata for this problem is not official.**
**Official testdata (that can be uploaded here) is being collected.**
**Official testdata (that cannot be uploaded here): **
**Unofficial testdata download: **
Description
Xiao Keke has $T$ calculation problems of the form $a + b = c$. You need to check whether she got each problem correct.
Input Format
The first line contains a positive integer $T$.
The next $T$ lines each contain an expression in the form `a+b=c`.
It is guaranteed that the input format is correct, the numbers have no leading zeros, and there are no spaces between numbers and operators.
See the sample for the exact format.
Output Format
Output $T$ lines. If the $i$-th expression is correct, output `Right!` on the $i$-th line; otherwise, output `Wrong!` on the $i$-th line.
Explanation/Hint
### Sample 1 Explanation
Note from the problem porter: To avoid insulting everyone’s intelligence, the sample will not be explained. (There is no sample explanation in the setter’s PDF either.)
### Constraints
For $40\%$ of the testdata, $a = b = 1$ and $c = 2$.
For $80\%$ of the testdata, $a,b,c \le 9$.
For $100\%$ of the testdata, $1 \le T \le 10$ and $1 \le a,b,c \le 99$.
Translated by ChatGPT 5