Task shedule in hacker block daily code byte 11 th oct

how to take the input .can you explain how to take input and what is the min difference between end and start to count how many activites he can do

Hello @Chandra123,

Input format:
//The first line consists of an integer T, the number of test cases.
1
//For each test case the first line consists of an integer N, the number of activities.
4
//Then the next N lines contains two integers m and n, the start and end time of each activity.
1 7
5 8
7 8
1 8

Output:
2

Explanation:
first (1,7) then (7,8)

So, the difference could be end-start>=0.

Hope, this would help.
Give a like if you are satisfied.