Runtime error(SIGSEGV) for COT2

Правка en1, от Dazzler, 2017-09-01 02:51:42

I was trying to solve problem. In this problem, the constraint for weight is not given. So i assumed it to be less than 1000000 and solved it accordingly. Here is my code. But it is giving RE. I have wasted a whole day to rectify it but i couldn't. Please someone help me.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Dazzler 2017-09-01 15:19:56 163
en1 Английский Dazzler 2017-09-01 02:51:42 371 Initial revision (published)