My code for this problem is now over 150 lines long, and I'm still getting WAs
I won't ask you to read it (yet
Will you please give me some hints on this one?
Ah!, and some critical I/O too
Also, is my I/O for this test case alright?:
Input:
- Code: Select all
5
0 0 10000 1000
0 200 5000 200 7000 200 -1 -1
2000 600 5000 600 10000 600 -1 -1
0 0 20000 2000
0 400 10000 400 14000 400 -1 -1
4000 1200 10000 1200 20000 1200 -1 -1
1 1 10001 1001
0 200 5000 200 7000 200 -1 -1
2000 600 5000 600 10000 600 -1 -1
0 0 10000 1000
0 200 5000 200 7000 200 -1 -1
2000 600 5000 600 10000 600 -1 -1
0 0 10000 999 -1 -1
0 0 0 0
0 200 5000 200 7000 200 -1 -1
2000 600 5000 600 10000 600 -1 -1
Output:
- Code: Select all
21
42
21
15
0
Thanks in advance!

