4081 - Almost Accepted

Created by Yonny Mondelo Hernández
Added by ymondelo20 (2018-09-05)
Limits
Total Time: 15000 MS | Test Time: 1000 MS |Memory: 512 MB | Output: 64 MB | Size: 16 KB
Enabled languages
Available in

Description

When solving a problem during a programming competition there are some common verdicts like Accepted (your program ran successfully and gave a correct answer) and Wrong Answer (your program ran successfully, but gave an incorrect answer) which are well-know cases. However, when your solution does not conform to the output format in the problem statement you could receive some kind of format error.

You must always take into account to respect the problems' output format: in the COJ, this is the main reason for receiving a Presentation Error. So you must be careful to input only what is asked for, and output only what is asked for. In particular, when you gave a correct answer you must output no additional white space or blank line. Mostly, because the verdict is determined by an automatic judge engine.

So given the correct output for one dataset of some problem in the COJ, and the output provided by a user for that dataset, can you check which must be the corresponding verdict of the engine?
Al resolver un problema durante una competencia de programación, existen algunos veredictos comunes como "Accepted" (su programa se ejecutó correctamente y ofreció una respuesta correcta) y "Wrong Answer" (su programa se ejecutó exitosamente, pero brindó una respuesta incorrecta) que son casos conocidos. Sin embargo, cuando su solución no se ajusta al formato de salida en la declaración del problema, podría recibir algún tipo de error de formato.

Siempre debe tener en cuenta respetar el formato de salida de los problemas: en el COJ, esta es la razón principal para recibir el veredicto de "Presentation Error". Por lo tanto, debe tener cuidado de leer e imprimir solo lo que se solicita. En particular, cuando brinde una respuesta correcta, no debe generar un espacio en blanco adicional, o una línea en blanco. Principalmente, porque el veredicto está determinado por un motor de calificación automático.

Entonces, dado la salida correcta para un dataset de algún problema en el COJ, y la salida proporcionada por un usuario para ese dataset: ¿puede verificar cuál debe ser el veredicto correspondiente del motor?
When solving a problem during a programming competition there are some common verdicts like Accepted (your program ran successfully and gave a correct answer) and Wrong Answer (your program ran successfully, but gave an incorrect answer) which are well-know cases. However, when your solution does not conform to the output format in the problem statement you could receive some kind of format error.

You must always take into account to respect the problems' output format: in the COJ, this is the main reason for receiving a Presentation Error. So you must be careful to input only what is asked for, and output only what is asked for. In particular, when you gave a correct answer you must output no additional white space or blank line. Mostly, because the verdict is determined by an automatic judge engine.

So given the correct output for one dataset of some problem in the COJ, and the output provided by a user for that dataset, can you check which must be the corresponding verdict of the engine?

Input specification

The input will consist in exactly two lines. The first line will contain the correct output for the dataset, and the last one will contain the output provided by the user. Lines will have no more than 100 characters. They will consist only of digits and white spaces, and no line will have leading or trailing white spaces.
La entrada consistirá en exactamente dos líneas. La primera línea contendrá la salida correcta para el dataset, y la última contendrá la salida proporcionada por el usuario. Las líneas no tendrán más de 100 caracteres. Solo consistirán en dígitos y espacios en blanco, y ninguna línea tendrá espacios en blanco iniciales o finales.
The input will consist in exactly two lines. The first line will contain the correct output for the dataset, and the last one will contain the output provided by the user. Lines will have no more than 100 characters. They will consist only of digits and white spaces, and no line will have leading or trailing white spaces.

Output specification

  • If both outputs are equals the verdict to print must be Accepted (there is no difference on structure, content and white spaces between their terms).
  • If after removing all white spaces in both outputs they are equals the verdict to print must be Presentation Error.
  • In any other cases the verdict to print must be Wrong Answer.
  • Si ambas salidas son iguales, el veredicto a imprimir debe ser "Accepted" (no hay diferencia en la estructura, el contenido ni en espacios en blanco entre sus términos).
  • Si después de eliminar todos los espacios en blanco en ambas salidas estas son iguales, el veredicto a imprimir debe ser "Presentation Error".
  • En cualquier otro caso, el veredicto a imprimir debe ser "Wrong Answer".
The input will consist in exactly two lines. The first line will contain the correct output for the dataset, and the last one will contain the output provided by the user. Lines will have no more than 100 characters. They will consist only of digits and white spaces, and no line will have leading or trailing white spaces.

Sample input

999100
999100

Sample output

Accepted

Hint(s)

Sample Input #2:
989100
999100
Sample Output #2:
Wrong Answer

Sample Input #3:
999100
999 100
Sample Output #3:
Presentation Error

Sample Input #4:
989100
999 100
Sample Output #4:
Wrong Answer
Sample Input #2:
989100
999100
Sample Output #2:
Wrong Answer

Sample Input #3:
999100
999 100
Sample Output #3:
Presentation Error

Sample Input #4:
989100
999 100
Sample Output #4:
Wrong Answer
Sample Input #2:
989100
999100
Sample Output #2:
Wrong Answer

Sample Input #3:
999100
999 100
Sample Output #3:
Presentation Error

Sample Input #4:
989100
999 100
Sample Output #4:
Wrong Answer