|
|
back to boardWhat test 5? I check all values, that find in this forum - and my program always have correct answer. My algorithm: get massive of values; backing sort; res = mas[0]; for i=2 to N do if res>0 then res=res-mas[next] else res=res+mas[next]. I have error in fifth test.... Re: what read? I have error in first test, but my program have correct answer. Why? Re: What test 5? I have the same problem. I used DFS and it said WA#5. What's the fifth test? |
|
|