Ticket 16854
Problem 1797 -d
Submission 205025905
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
4 4
-1 0 -1 1 
1 2
4 3
2 3
2 2
2 3
1 4
1 4
Expected Output
1
1
Your Output
0
0
Difference
Generator Parameters
--m_high 4 --m_low 1 --n_high 4 --n_low 2 --val_high 1 --val_low -1