I've tried again and again for this problem, and always got WAs.
And I've modified my code several times, check the answer with friends, did something like that all night, but i just can't figure it out why.
I've also tried some different OS, different compiler..just don't know..don't understand ...