Compare the expected answer with Manyoung's output for each sample and system test case, then print Accepted, Wrong Answer, or Why Wrong!!! according to which group fails.
Easy2ImplementationSimulationArrayBrute forceInterviewNo attempts yetTime limit1sMemory limit512 MBWhether a submitted program is correct is decided by test cases. One problem has multiple test cases, and a submission counts as correct only when it passes every test case. If even one test case produces a different answer, the submission is wrong.
Test cases fall into two groups by disclosure. Sample test cases are disclosed to help understand the problem, and system test cases are undisclosed data used for additional verification during judging. A submitted program must therefore handle every input within the limits.
Manyoung has a bad habit of submitting as soon as the sample test cases pass. Junpyo no longer wants to read the code directly, so he collected the correct answers and the outputs of Manyoung's program for every test case.
Given the correct answer and Manyoung's output for each test case, predict the verdict Manyoung will receive.
The first line contains the number of sample test cases S1 and the number of system test cases S2, separated by a space.
The next S1 lines list, in order, the correct answer and Manyoung's output for each sample test case, separated by a space. The following S2 lines list, in the same format and in order, the correct answer and Manyoung's output for each system test case.
Every correct answer and every output is an integer from −231 to 231−1 inclusive.
If Manyoung's program produced the correct answer on every test case, print Accepted without quotation marks.
If at least one sample test case is wrong, print Wrong Answer without quotation marks.
If every sample test case is correct but at least one system test case is wrong, print Why Wrong!!! without quotation marks.
If both a sample test case and a system test case are wrong, the result is Wrong Answer. When S1=0, there is no sample test case to compare, so the result is either Accepted or Why Wrong!!! based only on the system test cases. When S1+S2=0, there is nothing to compare, so the result is Accepted.