TOPIC

Enunciado errado.

Kayque Damasceno asked 2 years ago

O seguinte trecho da descrição mostra que todas as 3 entradas devem ser zero. "A entrada termina com W1 = W2 = R = 0." Porém só basta que uma seja igual a 0 para que o loop termine de executar, de acordo com o uDebug.

Remember not post solutions. Your post may be reviewed by our moderators.

  • feodorv replied 2 years ago

    It's because the restrictions for correct inputs are 1 ≤ W1 ≤ 60, 1 ≤ W2 ≤ 100 and 1 ≤ R ≤ 12. So no need for a solution to check all three numbers on zero values. Of course it can be that judge input violates the restrictions defined in a problem description...