Ticket 4826
Problem 1665 -e
Submission 153476751
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
20
207246328 988044303 525738396 369927544 652852721 739950245 746459003 351260384 288005029 358169910 457352453 446743130 178219492 888222920 426854140 838431533 1002029699 468259077 556581736 343452037 
50
8 13
1 8
6 11
6 11
9 10
5 14
10 17
10 20
7 10
5 18
9 16
16 18
11 20
1 4
2 15
1 7
13 19
5 14
16 18
5 14
2 6
2 10
6 15
1 12
4 20
3 12
4 12
7 16
6 7
1 13
7 15
10 12
2 12
1 14
3 5
12 17
17 20
7 19
2 15
7 12
2 15
1 7
15 20
1 20
4 13
4 11
7 11
6 17
6 10
1 10
Expected Output
360431543
384823288
360431543
360431543
360431543
360431543
448785406
360299959
360431543
360431543
360431543
1006203693
448785406
509540344
360431543
509540344
469325821
360431543
1006203693
360431543
526296572
360431543
360431543
360431543
352317413
360431543
360431543
360431543
746504191
249527292
360431543
467855199
360431543
249527292
526296572
448785406
536459653
360431543
360431543
360431543
360431543
509540344
469325821
249527292
360431543
360431543
360431543
360431543
360431543
360431543
Your Output
360431543
384823288
360431543
360431543
360431543
360431543
448785406
360299959
360431543
360431543
360431543
1006203693
448785406
509540344
360431543
509540344
469325821
360431543
1006203693
360431543
526296572
360431543
360431543
360431543
360299959
360431543
360431543
360431543
746504191
249527292
360431543
467855199
360431543
249527292
526296572
448785406
536459653
360431543
360431543
360431543
360431543
509540344
469325821
249527292
360431543
360431543
360431543
360431543
360431543
360431543
Difference
Generator Parameters
--n_high 20 --n_low 20 --q_high 50 --q_low 50 --t_high 1 --t_low 1 --val_high 1073741823 --val_low 0