|
|
вернуться в форумNo subject Can I get some test inputs please? Re: No subject Input: 1 1 2 Output: -2 Re: No subject Послано malaev 20 окт 2015 20:34 why? Re: No subject Because 1-1-2=-2 Re: No subject But in problem description "You are not allowed to use unary minus and parentheses in the expression", so 1-1-2 is not correct Edited by author 21.10.2015 16:37 Re: No subject Unary minus and usual minus are different things... Re: wrong answer [code deleted] Edited by moderator 24.11.2019 13:46 Re: wrong answer Послано Snetch 23 дек 2015 23:31 5 2 1 answer: 5-2-1 = 2 your program would say 3 Re: wrong answer For 5 2 1, it's -9. Numbers can be placed in any order. Re: wrong answer input numbers are nondecressing order so you can't put 5 2 1 Re: No subject try 0 0 5 ans -5 not 0 |
|
|