Ticket 13697
Problem 1665 -e
Submission 161386727
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
1
50
25 896 757 445 347 606 478 757 494 788 310 91 837 689 880 208 757 263 355 571 825 302 717 515 879 513 718 406 153 671 105 742 477 748 774 231 262 13 755 19 768 240 478 742 95 706 861 609 473 374 
1
10 46
Expected Output
31
Your Output
27
Difference
Generator Parameters
--n_high 50 --n_low 50 --q_high 1 --q_low 1 --t_high 1 --t_low 1 --val_high 1023 --val_low 0