My program has passed all the tests given in this topic, but I still got WA. Can anyone give me more test cases with correct output. Please Help me! I am getting crazy with this problem. Thanks in advance!
This problem requires long long (64 bit) variables instead of int (32 bit) ?