ICPC 2019 -Online Round-Question 3(Moving Line Segments)

10^9 Works.

can you plzz help me… in my code
i am getting wa…
i am not getting what i did wrong here
plzz check my code
https://www.codechef.com/viewsolution/38013538