spoj Weight wa plz help

,

problem :SPOJ.com - Problem WEIGHT
sol: XKDKGk - Online C++ Compiler & Debugging Tool - Ideone.com

Brother, my implementation : zD2vLZ - Online C++ Compiler & Debugging Tool - Ideone.com & Rzz3yl - Online C++ Compiler & Debugging Tool - Ideone.com

1 Like

would you please explain the algorithm used in zD2vLZ - Online C++ Compiler & Debugging Tool - Ideone.com

Brother, till line : 37 fast I/O method has been implemented, after that it’s easy as you can see.

2 Likes