• + 1 comment

    how is output of this test case coming 4999949998??

    100000 2

    1 2

    3 4

    my code is showing segmentation fault here..!!except this, it passes all test cases. please help!!