Ticket 17259
Problem 1919 -f1
Submission 1
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
5 5
3 2 2 7 4 
2 0 8 2 0 
1000000000000000000 1000000000000000000 1000000000000000000 1000000000000000000 
2 5 5 1000000000000000000
1 6 8 1000000000000000000
3 7 9 1000000000000000000
5 9 2 1000000000000000000
2 2 8 1000000000000000000
Expected Output
12
15
20
22
19
Your Output
17
20
22
24
21
Difference
Generator Parameters
--ai_high 9 --ai_low 0 --bi_high 9 --bi_low 0 --ci_high 1000000000000000000 --ci_low 1000000000000000000 --n_high 5 --n_low 2 --q_high 5 --q_low 5 --x_or_y_high 9 --x_or_y_low 0 --z_high 1000000000000000000 --z_low 1000000000000000000