QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#583217#8902. Видеонаблюдение3un_larryfunc100 ✓23ms4564kbC++231.1kb2024-09-22 19:01:102024-09-22 19:01:10

詳細信息

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 0ms
memory: 3632kb

input:

388 366 1
288 22

output:

1 0

result:

ok 2 number(s): "1 0"

Test #2:

score: 5
Accepted
time: 0ms
memory: 3644kb

input:

819482704 658532316 1
123698216 225317189

output:

1 0

result:

ok 2 number(s): "1 0"

Subtask #2:

score: 10
Accepted

Test #3:

score: 10
Accepted
time: 0ms
memory: 3700kb

input:

487 439 2
64 8
334 266

output:

39676 72

result:

ok 2 number(s): "39676 72"

Test #4:

score: 10
Accepted
time: 0ms
memory: 3644kb

input:

870965321 869963992 2
835085770 786328420
22764394 733886186

output:

3075419597459310 22764394

result:

ok 2 number(s): "3075419597459310 22764394"

Test #5:

score: 10
Accepted
time: 0ms
memory: 3584kb

input:

644365147 678680636 2
72815689 315690171
519297569 315690171

output:

197883268 72815689

result:

ok 2 number(s): "197883268 72815689"

Test #6:

score: 10
Accepted
time: 0ms
memory: 3704kb

input:

825110169 580508287 2
62502582 219347294
62502582 210580221

output:

8767074 0

result:

ok 2 number(s): "8767074 0"

Subtask #3:

score: 29
Accepted

Test #7:

score: 29
Accepted
time: 0ms
memory: 3644kb

input:

1 777 321
1 364
1 34
1 499
1 258
1 502
1 79
1 161
1 472
1 307
1 553
1 492
1 234
1 7
1 365
1 163
1 25
1 252
1 675
1 623
1 236
1 198
1 93
1 563
1 119
1 583
1 422
1 762
1 652
1 125
1 476
1 385
1 23
1 9
1 265
1 323
1 529
1 491
1 550
1 757
1 31
1 145
1 107
1 189
1 436
1 89
1 268
1 456
1 414
1 568
1 530
1...

output:

766 145

result:

ok 2 number(s): "766 145"

Test #8:

score: 29
Accepted
time: 0ms
memory: 3692kb

input:

1 829624939 123
1 611730344
1 425028914
1 710046352
1 677747449
1 33689235
1 361475042
1 104727377
1 799284398
1 644298355
1 119867669
1 182896773
1 251629726
1 130894568
1 339582617
1 473391255
1 558145633
1 653270044
1 486850813
1 301399337
1 662530702
1 453062792
1 509552308
1 89000892
1 50197333...

output:

803639379 0

result:

ok 2 number(s): "803639379 0"

Test #9:

score: 29
Accepted
time: 0ms
memory: 3636kb

input:

1 859112821 55
1 112408525
1 411157276
1 724630215
1 213072628
1 693562001
1 146709500
1 685283574
1 220208254
1 456466236
1 145088386
1 726735374
1 407448258
1 442927299
1 761773353
1 643249688
1 206330916
1 633719479
1 328673617
1 819231576
1 575192834
1 517734611
1 449400838
1 379038325
1 2419213...

output:

801654599 1589709

result:

ok 2 number(s): "801654599 1589709"

Test #10:

score: 29
Accepted
time: 0ms
memory: 3576kb

input:

1 724829223 35
1 71013780
1 668318815
1 303355345
1 104544154
1 10964899
1 365172017
1 449340803
1 321966293
1 292410387
1 289575793
1 144924142
1 220930789
1 636117631
1 19038842
1 540536821
1 171031253
1 281693081
1 335923948
1 251350950
1 182626979
1 5267809
1 500704400
1 355666888
1 564390656
1 ...

output:

653102249 88711593

result:

ok 2 number(s): "653102249 88711593"

Test #11:

score: 29
Accepted
time: 0ms
memory: 3584kb

input:

1 675636355 85
1 48806953
1 340655331
1 455280601
1 241143599
1 204839175
1 136805822
1 40596412
1 44505931
1 395381556
1 164480471
1 559608155
1 599503275
1 117595554
1 251889299
1 179377478
1 258539320
1 91816248
1 148546763
1 316712581
1 483078482
1 144161832
1 291010513
1 351889397
1 240400424
1...

output:

643832570 124150539

result:

ok 2 number(s): "643832570 124150539"

Test #12:

score: 29
Accepted
time: 0ms
memory: 3620kb

input:

1 804305265 125
1 87229358
1 723081457
1 642251156
1 158766403
1 427759552
1 417013514
1 641377978
1 357582151
1 69615401
1 619680753
1 713957477
1 27328887
1 585320621
1 91227966
1 729156694
1 348621422
1 504002073
1 105789452
1 142737185
1 351527431
1 208361857
1 362781468
1 595998815
1 634446858
...

output:

768895653 312202277

result:

ok 2 number(s): "768895653 312202277"

Test #13:

score: 29
Accepted
time: 0ms
memory: 3704kb

input:

1 915796087 155
1 77196410
1 667531793
1 465985685
1 71917015
1 51294854
1 846696140
1 394348705
1 384532240
1 99737666
1 514910963
1 445797190
1 37610110
1 174638815
1 279107681
1 128807078
1 776329842
1 47515725
1 639996140
1 597024006
1 729055570
1 904134838
1 725275802
1 558730280
1 17198369
1 5...

output:

869465518 232777111

result:

ok 2 number(s): "869465518 232777111"

Test #14:

score: 29
Accepted
time: 0ms
memory: 3660kb

input:

1 511685014 500
1 424343916
1 6977955
1 136763257
1 332367123
1 86730144
1 378408890
1 215814758
1 508384444
1 116401867
1 263893099
1 270312454
1 299427570
1 430478114
1 401438567
1 33538492
1 31369024
1 377626574
1 509414612
1 407548324
1 344275208
1 419942459
1 26281194
1 403120614
1 1326855
1 36...

output:

506240219 50850281

result:

ok 2 number(s): "506240219 50850281"

Test #15:

score: 29
Accepted
time: 9ms
memory: 3860kb

input:

1 813564029 54321
1 492988176
1 463279144
1 366147275
1 263222354
1 761194353
1 632710004
1 227097727
1 595409529
1 617851270
1 556221895
1 723896147
1 496663588
1 766643774
1 56320294
1 198692701
1 78591051
1 509592315
1 152136417
1 238373896
1 282290317
1 309150079
1 445625584
1 670295706
1 455024...

output:

813389321 56823136

result:

ok 2 number(s): "813389321 56823136"

Test #16:

score: 29
Accepted
time: 0ms
memory: 3740kb

input:

1 953683575 1098
1 943916600
1 901640623
1 792388740
1 659512615
1 47486541
1 384164904
1 924899543
1 798789975
1 185210051
1 775082341
1 475540547
1 151321372
1 675025365
1 44687099
1 870704232
1 387521380
1 665745873
1 464218484
1 380898430
1 217250137
1 772759089
1 93068296
1 325745258
1 26567351...

output:

945393442 0

result:

ok 2 number(s): "945393442 0"

Test #17:

score: 29
Accepted
time: 16ms
memory: 4528kb

input:

1 567039528 100000
1 407946313
1 541113994
1 512920687
1 345224738
1 19063832
1 318209565
1 524170948
1 36817118
1 331021594
1 378475484
1 81434326
1 490582293
1 51129907
1 128901185
1 132185012
1 195582302
1 412016948
1 419568447
1 164254399
1 386270246
1 391755957
1 37273923
1 515864249
1 50078398...

output:

566980797 0

result:

ok 2 number(s): "566980797 0"

Subtask #4:

score: 11
Accepted

Test #18:

score: 11
Accepted
time: 0ms
memory: 3656kb

input:

48 49 15
47 14
40 40
10 40
42 26
34 34
25 26
43 14
25 34
34 46
42 46
43 16
47 16
10 14
42 40
5 34

output:

1122 10

result:

ok 2 number(s): "1122 10"

Test #19:

score: 11
Accepted
time: 0ms
memory: 3584kb

input:

49 49 6
49 26
13 5
3 24
49 24
49 5
13 26

output:

308 1

result:

ok 2 number(s): "308 1"

Test #20:

score: 11
Accepted
time: 0ms
memory: 3636kb

input:

49 50 8
4 42
11 42
41 40
11 8
11 40
4 40
41 42
41 8

output:

380 17

result:

ok 2 number(s): "380 17"

Test #21:

score: 11
Accepted
time: 0ms
memory: 3584kb

input:

49 50 10
39 38
2 10
2 38
39 36
3 38
2 14
3 14
21 36
3 36
3 10

output:

928 3

result:

ok 2 number(s): "928 3"

Test #22:

score: 11
Accepted
time: 0ms
memory: 3580kb

input:

49 50 12
9 18
35 49
24 18
9 14
1 27
1 49
9 27
1 14
24 49
9 49
35 14
24 14

output:

1015 2

result:

ok 2 number(s): "1015 2"

Test #23:

score: 11
Accepted
time: 0ms
memory: 3572kb

input:

30 44 120
12 14
2 41
29 11
19 39
17 27
3 37
15 17
30 1
7 20
16 23
23 15
6 35
28 19
22 43
3 10
28 42
21 20
12 32
23 19
11 31
26 35
28 9
7 9
28 27
17 22
10 12
22 8
15 5
21 23
7 4
15 33
12 20
25 15
25 1
17 26
27 41
26 8
2 37
5 13
12 19
10 14
9 40
27 40
22 9
9 27
2 42
26 3
26 15
24 19
6 40
8 24
10 20
29...

output:

1320 0

result:

ok 2 number(s): "1320 0"

Test #24:

score: 11
Accepted
time: 0ms
memory: 3584kb

input:

25 25 220
1 25
14 15
17 9
24 14
6 22
2 4
8 2
23 4
18 25
3 21
13 11
18 5
13 6
13 17
14 9
16 22
22 22
7 2
7 9
10 18
16 5
14 14
6 9
2 24
24 3
20 19
10 24
25 7
24 9
19 23
23 6
6 5
11 25
7 17
4 19
25 14
10 17
25 2
14 2
13 20
2 2
9 16
15 5
10 13
12 14
3 14
8 13
13 18
10 23
22 18
1 1
20 20
7 6
1 10
22 6
25...

output:

625 0

result:

ok 2 number(s): "625 0"

Test #25:

score: 11
Accepted
time: 0ms
memory: 3568kb

input:

29 34 228
17 23
15 22
24 12
17 24
28 18
17 10
9 30
12 14
21 3
26 2
13 33
13 31
5 10
21 17
11 18
19 31
9 31
12 24
5 34
19 34
26 9
21 9
17 31
22 22
13 18
22 17
15 12
8 24
28 9
23 34
6 17
15 18
5 12
15 24
12 10
8 32
5 18
20 12
27 2
21 7
24 10
6 14
28 23
19 32
8 9
5 17
24 14
6 12
15 34
22 32
22 33
13 24...

output:

783 5

result:

ok 2 number(s): "783 5"

Test #26:

score: 11
Accepted
time: 1ms
memory: 3700kb

input:

50 50 2499
31 33
38 49
30 41
42 35
40 4
32 40
28 1
23 19
49 28
9 17
26 46
1 15
39 45
47 17
45 29
28 10
6 37
23 36
23 29
18 49
18 20
2 9
47 33
5 20
47 20
2 27
29 9
4 40
42 22
1 17
18 9
22 8
26 39
14 21
20 7
28 15
49 50
48 10
39 19
18 3
37 38
34 30
33 4
10 3
27 7
22 15
11 47
34 44
9 41
38 12
33 30
34 ...

output:

2500 0

result:

ok 2 number(s): "2500 0"

Test #27:

score: 11
Accepted
time: 1ms
memory: 3652kb

input:

49 50 1500
19 35
38 33
49 8
21 7
34 19
37 17
28 7
37 50
10 46
20 37
32 10
12 10
3 31
44 31
7 42
16 49
34 41
44 33
30 31
9 15
39 36
9 25
4 16
49 2
11 50
28 30
25 44
38 17
37 26
14 32
24 49
2 27
1 19
37 20
23 50
10 3
28 31
10 36
11 22
4 41
17 44
8 13
44 5
44 30
6 35
38 50
17 31
10 32
18 45
27 8
16 14
...

output:

2352 3

result:

ok 2 number(s): "2352 3"

Test #28:

score: 11
Accepted
time: 0ms
memory: 3600kb

input:

49 48 1000
19 29
19 19
23 43
38 29
30 15
13 41
41 10
44 5
48 6
29 15
28 31
2 14
17 6
21 40
47 43
13 25
42 34
42 42
39 26
22 20
11 23
33 47
37 35
11 44
15 10
10 27
2 23
15 33
35 27
42 35
48 42
42 12
1 2
14 24
11 18
14 26
12 28
35 22
26 24
43 23
22 37
6 4
49 25
1 31
9 43
41 9
22 4
9 31
34 46
48 41
21 ...

output:

2352 0

result:

ok 2 number(s): "2352 0"

Test #29:

score: 11
Accepted
time: 0ms
memory: 3636kb

input:

49 49 49
43 13
46 13
25 13
9 13
7 13
41 13
21 13
12 13
2 13
29 13
15 13
42 13
39 13
10 13
14 13
47 13
28 13
44 13
45 13
18 13
37 13
24 13
16 13
33 13
20 13
11 13
49 13
30 13
13 13
27 13
32 13
22 13
23 13
19 13
1 13
3 13
34 13
6 13
8 13
36 13
31 13
5 13
35 13
26 13
4 13
48 13
17 13
38 13
40 13

output:

49 0

result:

ok 2 number(s): "49 0"

Test #30:

score: 11
Accepted
time: 0ms
memory: 3648kb

input:

49 49 49
39 12
39 32
39 49
39 2
39 30
39 41
39 25
39 26
39 46
39 3
39 48
39 5
39 39
39 42
39 47
39 16
39 31
39 8
39 14
39 4
39 23
39 38
39 9
39 11
39 6
39 29
39 19
39 18
39 1
39 7
39 13
39 22
39 17
39 10
39 43
39 28
39 15
39 36
39 37
39 27
39 44
39 20
39 24
39 45
39 34
39 33
39 35
39 40
39 21

output:

49 0

result:

ok 2 number(s): "49 0"

Subtask #5:

score: 15
Accepted

Dependency #4:

100%
Accepted

Test #31:

score: 15
Accepted
time: 0ms
memory: 3584kb

input:

871 884 120
562 618
67 252
255 432
255 652
623 624
216 652
255 618
216 432
806 655
255 72
67 432
562 432
554 432
562 867
562 655
806 652
557 618
497 252
623 72
688 652
554 618
67 618
30 867
562 72
806 72
688 72
562 252
497 867
30 432
806 432
623 51
67 624
554 252
562 624
67 652
497 624
554 438
557 6...

output:

444150 273

result:

ok 2 number(s): "444150 273"

Test #32:

score: 15
Accepted
time: 0ms
memory: 3636kb

input:

764 932 240
241 385
241 8
379 56
4 319
64 317
445 362
614 385
487 230
167 41
543 362
443 343
607 594
614 250
443 362
379 73
46 343
64 527
338 230
70 256
70 8
614 230
607 73
170 250
543 527
487 73
46 317
543 73
170 256
170 223
487 362
4 594
64 8
379 385
170 529
46 594
167 385
443 319
487 529
682 317
...

output:

392116 70

result:

ok 2 number(s): "392116 70"

Test #33:

score: 15
Accepted
time: 0ms
memory: 3648kb

input:

565 685 480
481 610
228 72
340 378
261 574
294 468
37 574
296 254
499 574
201 459
189 442
481 442
108 615
248 107
40 518
176 254
555 181
507 99
40 568
108 610
235 605
239 208
532 610
340 131
399 263
542 547
558 195
137 605
239 181
408 459
296 98
176 672
137 357
499 375
499 350
368 468
558 254
189 37...

output:

299298 40

result:

ok 2 number(s): "299298 40"

Test #34:

score: 15
Accepted
time: 2ms
memory: 3780kb

input:

822 526 12000
120 448
56 183
432 284
34 186
42 278
526 101
301 35
720 518
774 72
12 81
435 512
450 390
350 284
415 287
50 478
562 69
707 374
303 410
143 215
246 175
707 106
690 507
453 468
536 16
375 73
399 57
437 435
800 310
163 368
303 270
142 259
107 213
4 514
178 194
605 246
16 459
354 13
515 28...

output:

432372 0

result:

ok 2 number(s): "432372 0"

Test #35:

score: 15
Accepted
time: 1ms
memory: 3780kb

input:

827 566 5000
772 93
662 443
265 350
246 360
441 84
631 74
444 204
721 137
281 237
190 361
648 38
396 410
239 320
91 546
416 137
288 521
430 144
538 385
198 545
157 225
516 504
719 444
435 170
376 200
181 72
741 322
798 82
49 464
801 420
811 389
582 258
182 52
485 484
207 527
124 96
168 406
784 116
5...

output:

464736 0

result:

ok 2 number(s): "464736 0"

Test #36:

score: 15
Accepted
time: 0ms
memory: 3704kb

input:

881 994 100
318 498
637 371
513 945
277 775
318 981
15 498
40 945
277 442
434 981
40 371
648 412
40 482
318 442
277 412
81 498
513 371
81 482
81 442
40 775
637 775
562 412
40 264
648 775
81 264
277 498
637 498
277 945
40 981
40 435
648 498
15 482
277 981
15 371
513 482
81 981
637 981
434 435
562 264...

output:

455212 0

result:

ok 2 number(s): "455212 0"

Test #37:

score: 15
Accepted
time: 12ms
memory: 4540kb

input:

1000 1000 100000
628 42
391 776
62 471
105 654
414 378
297 758
37 137
316 421
455 852
887 13
871 804
999 872
384 272
332 860
280 687
513 421
957 554
330 813
405 582
342 547
103 858
766 897
808 989
113 547
94 518
405 401
761 870
144 316
130 28
537 728
478 495
492 859
980 163
507 133
498 714
450 126
5...

output:

982080 168

result:

ok 2 number(s): "982080 168"

Test #38:

score: 15
Accepted
time: 16ms
memory: 4532kb

input:

997 998 100000
164 25
812 830
879 789
814 637
642 792
447 187
249 976
433 160
113 373
217 692
817 127
755 688
301 669
66 176
964 47
325 237
33 671
175 472
82 81
988 25
361 433
389 217
623 775
303 227
844 243
840 563
847 809
680 425
116 258
30 814
538 31
609 23
744 163
644 716
581 618
851 314
851 864...

output:

995006 0

result:

ok 2 number(s): "995006 0"

Test #39:

score: 15
Accepted
time: 0ms
memory: 3668kb

input:

912 995 912
682 899
810 899
872 899
5 899
305 899
466 899
476 899
685 899
506 899
425 899
443 899
160 899
620 899
144 899
687 899
821 899
482 899
268 899
629 899
714 899
517 899
834 899
276 899
609 899
697 899
215 899
672 899
646 899
575 899
477 899
281 899
234 899
98 899
207 899
663 899
486 899
133...

output:

912 0

result:

ok 2 number(s): "912 0"

Test #40:

score: 15
Accepted
time: 0ms
memory: 3624kb

input:

999 998 998
728 39
728 118
728 968
728 559
728 782
728 707
728 247
728 62
728 80
728 444
728 809
728 211
728 643
728 941
728 464
728 73
728 868
728 990
728 953
728 621
728 44
728 718
728 248
728 207
728 563
728 550
728 682
728 421
728 757
728 289
728 170
728 244
728 344
728 241
728 541
728 886
728 2...

output:

998 0

result:

ok 2 number(s): "998 0"

Subtask #6:

score: 6
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #41:

score: 6
Accepted
time: 7ms
memory: 3880kb

input:

147076 185709 50000
29206 66907
74529 108355
98687 90063
51491 7952
68221 79688
116613 117941
28744 140725
43676 143331
36627 106109
78630 123938
143131 106365
100695 24874
31592 40224
64317 50914
140436 148392
87096 24423
86563 73652
88923 87483
43129 26486
59591 67391
32766 112810
33931 90178
1096...

output:

27177886260 54354

result:

ok 2 number(s): "27177886260 54354"

Test #42:

score: 6
Accepted
time: 1ms
memory: 3740kb

input:

174989 152547 5000
60127 23123
34584 37037
5837 97254
68698 32541
160072 33063
48486 123481
150305 59568
116434 96469
29336 102981
66531 99131
162975 91531
83893 77472
1165 134253
6826 10452
131379 120646
158820 15308
52965 101889
144271 102170
17998 8249
143736 71301
162805 36974
153815 97884
48664...

output:

26053162077 0

result:

ok 2 number(s): "26053162077 0"

Test #43:

score: 6
Accepted
time: 0ms
memory: 3576kb

input:

174083 147957 100
58265 27792
58265 46488
105186 92225
23135 137925
103334 94043
105186 90370
33981 27792
129832 90370
23135 21318
103334 21318
38334 21318
38334 27792
34485 90370
151775 94043
151775 137925
33981 15391
151970 94043
129832 137925
129832 27792
129832 15391
151970 21318
38334 27761
383...

output:

13408735536 10033

result:

ok 2 number(s): "13408735536 10033"

Test #44:

score: 6
Accepted
time: 18ms
memory: 4540kb

input:

200000 200000 100000
55398 186259
2958 38653
56435 43059
186491 123984
84018 192556
189911 78336
81983 21855
76109 65779
168692 144173
196166 142335
183825 166636
14253 130728
42172 108245
35684 30294
48520 89655
173719 5627
618 30294
91637 92802
57948 91461
147165 36617
2958 112329
129110 36617
182...

output:

38070842080 5540

result:

ok 2 number(s): "38070842080 5540"

Test #45:

score: 6
Accepted
time: 21ms
memory: 4564kb

input:

190001 199222 100000
165584 79534
45350 170216
168119 122334
134311 7055
13637 70014
19646 33396
78426 21225
6418 187250
94801 27093
93323 9027
133530 56592
116506 32181
17520 149628
117087 26530
33696 31421
28973 12594
178561 129603
182924 107844
18428 25014
43788 61675
56042 182823
55983 118549
13...

output:

37715328290 5518

result:

ok 2 number(s): "37715328290 5518"

Test #46:

score: 6
Accepted
time: 11ms
memory: 3908kb

input:

54321 12345 64321
34400 11529
43712 759
24291 759
40969 11529
22603 759
23783 11529
23538 11529
31191 759
42973 759
12171 11529
45081 11529
49521 759
34157 11529
10763 11529
49087 11529
21284 759
49931 11529
54151 11529
51800 11529
32818 11529
33671 11529
44942 759
38285 11529
50488 759
15144 11529
...

output:

85609896 759

result:

ok 2 number(s): "85609896 759"

Test #47:

score: 6
Accepted
time: 0ms
memory: 3780kb

input:

199999 9999 19998
72058 7808
72058 170
72058 9061
106185 2445
106185 9680
72058 503
106185 5108
72058 9472
106185 2178
72058 5052
106185 6885
106185 6970
106185 948
72058 1915
106185 4903
106185 9940
106185 8391
106185 1309
72058 3823
72058 4366
106185 4010
106185 1730
106185 3199
106185 2207
72058 ...

output:

341245872 0

result:

ok 2 number(s): "341245872 0"

Subtask #7:

score: 24
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Dependency #6:

100%
Accepted

Test #48:

score: 24
Accepted
time: 19ms
memory: 4556kb

input:

675332607 575459049 100000
417622384 439362473
37285983 292648495
541528502 335442282
520186850 268662026
383244102 306248643
162760322 478651653
613575534 571753988
158048037 568093164
182218297 18029782
197174221 546445502
269048499 254134506
226992220 21949023
424463682 116057162
148649163 369240...

output:

387488814813851400 131036832

result:

ok 2 number(s): "387488814813851400 131036832"

Test #49:

score: 24
Accepted
time: 23ms
memory: 4560kb

input:

507442694 656140899 99999
450750023 557162017
13553605 66799807
101425011 546475072
453467391 115699248
65056152 629873220
327802992 451959090
438902900 322536952
41892281 196966112
49109891 145590610
273620423 477587173
223966560 186138170
276550291 494575524
483174132 159186717
273883039 268265336...

output:

331801986512260850 10578117

result:

ok 2 number(s): "331801986512260850 10578117"

Test #50:

score: 24
Accepted
time: 20ms
memory: 4488kb

input:

582247133 791923142 99998
193382827 392970477
50961461 226797254
75840037 80695946
91128633 176669055
561016572 392524736
381203944 677449263
119110945 664943897
103682174 575015924
271081417 107293293
376613390 403772339
260592856 521899922
465843205 483798566
50961461 206367059
58416273 739752953
...

output:

444271834521687040 0

result:

ok 2 number(s): "444271834521687040 0"

Test #51:

score: 24
Accepted
time: 20ms
memory: 4532kb

input:

807028044 924408608 100000
116553032 208457706
97141381 482828069
37464677 736294728
190837953 512132094
268895722 344111496
172825357 60843102
371913145 525267420
56260137 405939635
697502869 36685537
94432229 253597290
64988389 297684364
133895674 909310293
50260662 387693301
180402523 797007847
7...

output:

700578904439149218 359040139

result:

ok 2 number(s): "700578904439149218 359040139"

Test #52:

score: 24
Accepted
time: 1ms
memory: 3652kb

input:

607592656 925247854 998
309923370 605206695
580067759 605206695
476810230 605206695
287795464 605206695
320656952 605206695
367952857 605206695
349608263 605206695
159200320 605206695
2447985 605206695
379978567 605206695
184074947 605206695
237521089 605206695
554853062 605206695
516062402 60520669...

output:

602980124 22254801

result:

ok 2 number(s): "602980124 22254801"

Test #53:

score: 24
Accepted
time: 1ms
memory: 3656kb

input:

887560667 793189132 1000
244931131 16422926
244931131 179913082
244931131 409498345
244931131 315351451
244931131 469518716
244931131 688973009
244931131 459050546
244931131 95229717
244931131 608702524
244931131 644114667
244931131 602350819
244931131 343265608
244931131 91331421
244931131 31876368...

output:

787532931 43844639

result:

ok 2 number(s): "787532931 43844639"

Extra Test:

score: 0
Extra Test Passed