Repository navigation
Fix sum of two equals third - #26
Conversation
vtm9
left a comment
There was a problem hiding this comment.
Checking all three sums correctly fixes negative inputs, but the new asserts violate the published limits: [1000000000, 1000000000, 2000000000] and [-1000000000, -2000000000, -1000000000] contain values outside [-10^9, 10^9]. Keep the boundary cases within the stated limits, or update and audit the limits.
After merging with current main, base_score remains 100 while this PR reduces time_to_solve_sec to 60, contrary to the documented requirement that base score be lower than solving time. Please align the level, score, and path too: the file is under elementary but declares easy; this two-line implementation fits elementary.
All 37 submitted asserts pass; the remaining blockers are the published contract and metadata.
В тестах не было ни одного теста с отрицательными числами. Более того, эталонное решение выдавало бы на них неверные ответы. Исправил это недоразумение.
Также исправил то, что числа передаются не отдельно, а списком.