QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#370890#6362. Accommodation Plan_happy_WA 390ms86656kbC++143.5kb2024-03-29 18:50:342024-03-29 18:50:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 8564kb

input:

5 2 7
1 2 4
3 2 8
2 4 2
4 5 6

output:

12

result:

ok 1 number(s): "12"

Test #2:

score: 0
Accepted
time: 390ms
memory: 86656kb

input:

100000 6851 454171387
1 2 699608
2 3 27930
3 4 719630
4 5 1020888
2 6 763543
6 7 351259
4 8 486314
2 9 1387365
6 10 1288357
4 11 545529
11 12 516390
7 13 222352
12 14 1374608
13 15 118475
13 16 65492
15 17 924923
3 18 1143588
6 19 441762
12 20 1196602
17 21 1406265
15 22 865475
17 23 897062
21 24 35...

output:

95272333

result:

ok 1 number(s): "95272333"

Test #3:

score: 0
Accepted
time: 2ms
memory: 8668kb

input:

8 6 737945515
6 4 3454
6 5 39228
6 8 90331
6 7 31904
6 2 64718
6 3 69991
6 1 58925

output:

20160

result:

ok 1 number(s): "20160"

Test #4:

score: 0
Accepted
time: 0ms
memory: 8284kb

input:

8 5 573891853
8 3 845070
8 1 2304293
8 2 7165015
8 5 8512198
8 6 4711032
8 7 8764253
8 4 5876665

output:

6720

result:

ok 1 number(s): "6720"

Test #5:

score: 0
Accepted
time: 2ms
memory: 7540kb

input:

8 8 672635007
7 3 975710134
7 6 618246273
7 8 903412606
7 4 267301617
7 2 151872591
7 1 678749289
7 5 945399588

output:

0

result:

ok 1 number(s): "0"

Test #6:

score: 0
Accepted
time: 3ms
memory: 8928kb

input:

8 3 3095530
2 4 6015
2 3 2822
2 6 6598
2 1 8970
2 8 4664
2 7 7370
2 5 1425

output:

336

result:

ok 1 number(s): "336"

Test #7:

score: 0
Accepted
time: 0ms
memory: 9052kb

input:

8 6 19228
6 7 60
6 2 61
6 3 48
6 8 50
6 4 31
6 1 80
6 5 74

output:

20160

result:

ok 1 number(s): "20160"

Test #8:

score: 0
Accepted
time: 2ms
memory: 7344kb

input:

8 1 9476
8 3 21
8 4 20
8 7 32
8 6 44
8 5 5
8 2 4
8 1 49

output:

8

result:

ok 1 number(s): "8"

Test #9:

score: 0
Accepted
time: 0ms
memory: 7832kb

input:

8 8 762771948
3 6 67798
6 5 29033
5 1 46925
1 4 63404
4 2 62686
2 7 28707
7 8 43653

output:

40320

result:

ok 1 number(s): "40320"

Test #10:

score: 0
Accepted
time: 0ms
memory: 9236kb

input:

8 6 236053664
8 6 7426363
6 5 4228183
5 2 8931107
2 3 2377463
3 4 7969748
4 7 6516277
7 1 869296

output:

20160

result:

ok 1 number(s): "20160"

Test #11:

score: 0
Accepted
time: 3ms
memory: 7948kb

input:

8 3 895307116
8 1 562601320
1 6 995045068
6 7 762245166
7 4 900560333
4 2 904657319
2 3 693933408
3 5 740726094

output:

6

result:

ok 1 number(s): "6"

Test #12:

score: 0
Accepted
time: 2ms
memory: 7736kb

input:

8 6 6478494
6 4 7929
4 7 7277
7 3 4616
3 8 3211
8 1 5309
1 5 3659
5 2 8934

output:

20160

result:

ok 1 number(s): "20160"

Test #13:

score: 0
Accepted
time: 3ms
memory: 8844kb

input:

8 8 98347
5 3 71
3 2 78
2 7 70
7 4 1
4 8 49
8 1 25
1 6 22

output:

40320

result:

ok 1 number(s): "40320"

Test #14:

score: 0
Accepted
time: 0ms
memory: 7648kb

input:

8 8 1021
3 7 8
7 8 39
8 5 49
5 4 20
4 1 5
1 2 22
2 6 44

output:

40320

result:

ok 1 number(s): "40320"

Test #15:

score: 0
Accepted
time: 2ms
memory: 7808kb

input:

8 2 937341485
3 4 10326
3 8 38111
4 2 94903
8 7 27951
2 6 87423
7 1 71485
6 5 54079

output:

56

result:

ok 1 number(s): "56"

Test #16:

score: 0
Accepted
time: 3ms
memory: 8780kb

input:

8 8 163056691
7 3 6152073
7 2 5986799
3 6 1018535
2 5 6195760
6 1 4076813
5 4 6053416
1 8 610159

output:

40320

result:

ok 1 number(s): "40320"

Test #17:

score: 0
Accepted
time: 2ms
memory: 7232kb

input:

8 6 972755033
8 5 76876568
5 1 326110430
1 6 533819049
6 2 512217855
2 4 268926040
4 3 536052600
3 7 585723821

output:

720

result:

ok 1 number(s): "720"

Test #18:

score: 0
Accepted
time: 2ms
memory: 8440kb

input:

8 1 9861459
7 2 4835
7 3 2634
2 6 156
3 4 9057
6 8 1437
4 1 6443
8 5 5528

output:

8

result:

ok 1 number(s): "8"

Test #19:

score: 0
Accepted
time: 0ms
memory: 8632kb

input:

8 1 68953
8 7 87
8 1 93
7 4 59
1 2 76
4 5 74
2 3 75
5 6 54

output:

8

result:

ok 1 number(s): "8"

Test #20:

score: 0
Accepted
time: 0ms
memory: 8644kb

input:

8 7 9862
3 7 8
3 5 8
7 1 35
5 8 14
1 2 44
8 4 35
2 6 45

output:

40320

result:

ok 1 number(s): "40320"

Test #21:

score: 0
Accepted
time: 3ms
memory: 8688kb

input:

8 4 962167918
3 6 132
6 8 62001
8 5 26403
5 7 93215
7 2 13434
2 1 56213
1 4 70902

output:

1680

result:

ok 1 number(s): "1680"

Test #22:

score: 0
Accepted
time: 0ms
memory: 8908kb

input:

8 1 825218502
2 5 8075962
5 4 7818298
4 7 4883799
7 8 4487180
8 3 1828837
3 6 6013343
6 1 5936665

output:

8

result:

ok 1 number(s): "8"

Test #23:

score: 0
Accepted
time: 3ms
memory: 8496kb

input:

8 1 50202950
2 7 598899556
2 5 889975695
7 8 462045061
7 3 559969878
5 1 138885967
5 6 331379106
8 4 477174698

output:

8

result:

ok 1 number(s): "8"

Test #24:

score: 0
Accepted
time: 3ms
memory: 8388kb

input:

8 4 3435911
7 3 9289
3 2 3356
2 6 205
6 4 2806
4 1 9215
1 5 3953
5 8 9911

output:

1680

result:

ok 1 number(s): "1680"

Test #25:

score: 0
Accepted
time: 2ms
memory: 8536kb

input:

8 2 72263
1 6 4
6 2 7
2 7 9
7 8 94
8 4 19
4 5 15
5 3 35

output:

56

result:

ok 1 number(s): "56"

Test #26:

score: 0
Accepted
time: 2ms
memory: 8568kb

input:

8 7 8704
1 6 27
6 4 25
4 5 7
5 7 18
7 8 16
8 2 38
2 3 44

output:

40320

result:

ok 1 number(s): "40320"

Test #27:

score: 0
Accepted
time: 2ms
memory: 8888kb

input:

8 7 136737456
4 2 79741
4 8 14129
2 1 18595
2 5 16686
2 7 25775
2 6 72150
2 3 16748

output:

40320

result:

ok 1 number(s): "40320"

Test #28:

score: 0
Accepted
time: 3ms
memory: 9152kb

input:

8 2 752221529
3 8 6787266
3 2 9999852
8 7 4617094
8 6 8749064
8 1 2713192
8 4 4356668
8 5 5973270

output:

56

result:

ok 1 number(s): "56"

Test #29:

score: 0
Accepted
time: 2ms
memory: 8632kb

input:

8 4 127650867
8 7 438372990
8 5 680731055
7 1 453840959
7 4 95303777
7 2 167530414
7 6 154070086
7 3 126705611

output:

0

result:

ok 1 number(s): "0"

Test #30:

score: 0
Accepted
time: 0ms
memory: 8624kb

input:

8 7 1851579
1 7 7993
1 2 6847
7 6 1374
7 8 4445
7 5 746
7 3 2801
7 4 4566

output:

40320

result:

ok 1 number(s): "40320"

Test #31:

score: 0
Accepted
time: 0ms
memory: 8588kb

input:

8 4 51381
8 6 36
8 3 25
6 4 30
6 5 71
6 2 16
6 1 63
6 7 64

output:

1680

result:

ok 1 number(s): "1680"

Test #32:

score: 0
Accepted
time: 2ms
memory: 8812kb

input:

8 6 7545
4 5 12
4 8 46
5 3 42
5 2 22
5 7 26
5 1 38
5 6 32

output:

20160

result:

ok 1 number(s): "20160"

Test #33:

score: 0
Accepted
time: 2ms
memory: 8692kb

input:

8 1 161563889
2 8 90757
8 7 61173
8 3 42695
7 1 1948
8 4 28437
7 6 77134
2 5 38056

output:

8

result:

ok 1 number(s): "8"

Test #34:

score: 0
Accepted
time: 0ms
memory: 8808kb

input:

8 3 269159148
8 3 6589677
8 4 7092939
4 2 8359796
4 5 2763008
5 6 6402824
5 1 8802032
8 7 770083

output:

336

result:

ok 1 number(s): "336"

Test #35:

score: 0
Accepted
time: 0ms
memory: 9048kb

input:

8 7 205098784
7 4 294721443
4 6 943585848
7 2 95388153
2 1 869680499
2 8 70227722
6 3 633701355
6 5 714748785

output:

0

result:

ok 1 number(s): "0"

Test #36:

score: 0
Accepted
time: 2ms
memory: 8624kb

input:

8 2 5234543
8 2 8677
2 6 2624
2 3 5393
3 7 7785
8 1 1118
1 5 2763
1 4 9812

output:

56

result:

ok 1 number(s): "56"

Test #37:

score: 0
Accepted
time: 2ms
memory: 8700kb

input:

8 5 54692
1 4 91
1 5 46
4 3 98
1 2 31
2 7 39
7 6 94
1 8 66

output:

6720

result:

ok 1 number(s): "6720"

Test #38:

score: 0
Accepted
time: 2ms
memory: 8252kb

input:

8 6 9090
8 4 37
8 3 17
4 6 45
3 5 4
4 7 25
5 1 32
3 2 26

output:

20160

result:

ok 1 number(s): "20160"

Test #39:

score: 0
Accepted
time: 0ms
memory: 8652kb

input:

8 3 336133426
7 8 60868
8 3 35665
3 5 64083
5 6 71156
6 1 51550
1 2 97942
1 4 94685

output:

336

result:

ok 1 number(s): "336"

Test #40:

score: 0
Accepted
time: 0ms
memory: 9100kb

input:

8 5 636353663
3 4 6474463
4 1 5172654
1 6 1439718
4 2 1566905
6 5 7911933
5 8 780912
6 7 7813232

output:

6720

result:

ok 1 number(s): "6720"

Test #41:

score: 0
Accepted
time: 0ms
memory: 7464kb

input:

8 2 427770893
4 1 422448192
4 3 999541265
4 7 154314478
3 2 316702027
2 8 336728297
8 6 623876490
6 5 797897669

output:

12

result:

ok 1 number(s): "12"

Test #42:

score: 0
Accepted
time: 2ms
memory: 7400kb

input:

8 5 8617508
7 6 1410
6 5 9303
6 3 2875
3 2 179
2 8 9682
6 4 9163
4 1 4123

output:

6720

result:

ok 1 number(s): "6720"

Test #43:

score: 0
Accepted
time: 2ms
memory: 7768kb

input:

8 7 58002
4 7 77
4 5 88
5 3 55
3 2 15
2 8 23
8 6 28
5 1 12

output:

40320

result:

ok 1 number(s): "40320"

Test #44:

score: 0
Accepted
time: 3ms
memory: 9156kb

input:

8 5 7932
1 2 48
2 8 9
2 4 33
4 5 32
5 6 40
6 3 48
3 7 39

output:

6720

result:

ok 1 number(s): "6720"

Test #45:

score: 0
Accepted
time: 2ms
memory: 7176kb

input:

8 6 360959859
5 8 46336
5 1 93574
5 3 75538
5 2 73691
5 6 56531
5 7 27468
5 4 26796

output:

20160

result:

ok 1 number(s): "20160"

Test #46:

score: 0
Accepted
time: 2ms
memory: 8132kb

input:

8 6 858323986
3 7 377405
3 8 4199380
7 2 3820507
3 5 2620623
2 6 5611340
3 4 3366089
3 1 1498734

output:

20160

result:

ok 1 number(s): "20160"

Test #47:

score: 0
Accepted
time: 0ms
memory: 8904kb

input:

8 5 505218811
1 3 662701248
3 8 745246197
1 6 770584598
1 5 980404495
1 2 102383338
1 4 137999979
3 7 582604382

output:

0

result:

ok 1 number(s): "0"

Test #48:

score: 0
Accepted
time: 3ms
memory: 9156kb

input:

8 8 2000472
7 4 6228
7 6 7736
6 5 4491
7 1 9552
7 2 8389
7 8 4394
7 3 5085

output:

40320

result:

ok 1 number(s): "40320"

Test #49:

score: 0
Accepted
time: 2ms
memory: 8144kb

input:

8 8 4416
1 7 67
1 2 36
2 4 80
1 3 52
1 5 83
1 8 23
8 6 69

output:

40320

result:

ok 1 number(s): "40320"

Test #50:

score: 0
Accepted
time: 3ms
memory: 8588kb

input:

8 4 965
3 7 20
3 8 43
3 2 6
3 4 15
3 1 4
3 6 42
8 5 17

output:

1680

result:

ok 1 number(s): "1680"

Test #51:

score: 0
Accepted
time: 2ms
memory: 7780kb

input:

8 8 240562101
1 8 88731
8 3 32133
8 4 5643
4 2 1469
2 5 62641
4 7 65798
7 6 9163

output:

40320

result:

ok 1 number(s): "40320"

Test #52:

score: 0
Accepted
time: 0ms
memory: 9088kb

input:

8 7 225518501
7 2 7505271
2 8 7886900
2 5 7101876
5 6 4144713
6 1 906840
5 3 205979
3 4 1294068

output:

40320

result:

ok 1 number(s): "40320"

Test #53:

score: 0
Accepted
time: 0ms
memory: 8208kb

input:

8 8 287699432
3 5 46260038
5 4 743215838
5 1 564077825
1 8 363497424
8 6 918347021
1 2 484166692
2 7 748203123

output:

0

result:

ok 1 number(s): "0"

Test #54:

score: 0
Accepted
time: 3ms
memory: 8308kb

input:

8 3 607628
5 4 9970
4 2 872
4 8 5750
8 7 1136
7 1 2636
8 3 9720
3 6 3115

output:

336

result:

ok 1 number(s): "336"

Test #55:

score: 0
Accepted
time: 0ms
memory: 9160kb

input:

8 1 7727
5 6 4
6 4 85
6 2 11
2 3 96
3 8 96
2 7 50
7 1 54

output:

8

result:

ok 1 number(s): "8"

Test #56:

score: 0
Accepted
time: 2ms
memory: 7440kb

input:

8 4 2511
2 1 7
1 4 22
1 5 6
5 7 11
7 8 1
5 3 18
3 6 20

output:

1680

result:

ok 1 number(s): "1680"

Test #57:

score: 0
Accepted
time: 3ms
memory: 8012kb

input:

8 8 324367188
2 6 70179
4 6 15449
6 5 88199
8 5 73343
5 3 49566
1 3 52398
2 7 93607

output:

40320

result:

ok 1 number(s): "40320"

Test #58:

score: 0
Accepted
time: 2ms
memory: 7472kb

input:

8 7 600661881
3 6 721291
4 6 3802161
6 8 2641046
5 8 5240150
8 1 6293440
2 1 1166231
3 7 1893817

output:

40320

result:

ok 1 number(s): "40320"

Test #59:

score: 0
Accepted
time: 2ms
memory: 7432kb

input:

8 4 348282365
5 4 372175298
3 4 468755008
4 8 850332046
7 8 474108216
8 1 279307273
2 1 114957929
5 6 799417013

output:

0

result:

ok 1 number(s): "0"

Test #60:

score: 0
Accepted
time: 3ms
memory: 7980kb

input:

8 8 9683274
4 3 6808
7 3 2103
3 5 2197
2 5 3629
5 1 5791
6 1 7530
4 8 7306

output:

40320

result:

ok 1 number(s): "40320"

Test #61:

score: 0
Accepted
time: 2ms
memory: 8068kb

input:

8 8 97097
6 8 76
1 8 18
8 7 49
2 7 23
7 3 39
5 3 51
6 4 4

output:

40320

result:

ok 1 number(s): "40320"

Test #62:

score: 0
Accepted
time: 0ms
memory: 9148kb

input:

8 4 285
2 3 3
5 3 40
3 6 40
1 6 50
6 8 32
4 8 11
2 7 13

output:

1680

result:

ok 1 number(s): "1680"

Test #63:

score: 0
Accepted
time: 2ms
memory: 7676kb

input:

50 26 915103290
50 22 69691
50 10 32127
50 26 14441
50 28 38472
50 49 56803
50 23 42704
50 43 47172
50 41 44139
50 33 86658
50 34 69027
50 17 71571
50 1 72253
50 40 61585
50 15 3002
50 25 99393
50 45 46752
50 12 87025
50 13 11865
50 16 70433
50 18 75450
50 47 33828
50 24 73639
50 8 48262
50 44 27158...

output:

898371378

result:

ok 1 number(s): "898371378"

Test #64:

score: 0
Accepted
time: 2ms
memory: 8416kb

input:

50 39 430576851
11 37 8823421
11 29 9353898
11 46 9184850
11 8 3760515
11 43 2675518
11 9 9395184
11 42 1418495
11 35 6422094
11 5 373477
11 41 7159452
11 34 8989180
11 16 8797116
11 7 2856688
11 1 5950457
11 45 8401069
11 6 4072267
11 25 6595014
11 40 4511962
11 19 4775319
11 27 1729856
11 14 33143...

output:

86247804

result:

ok 1 number(s): "86247804"

Test #65:

score: 0
Accepted
time: 2ms
memory: 8188kb

input:

50 42 875414464
18 8 86845192
18 39 206300115
18 5 675549998
18 33 761311934
18 31 98252191
18 36 448133803
18 6 24896450
18 35 896243505
18 46 1239709
18 25 821520165
18 20 900189851
18 37 943092219
18 4 592936847
18 24 618252133
18 14 627535096
18 17 836912960
18 41 744327814
18 12 78149552
18 10 ...

output:

626855450

result:

ok 1 number(s): "626855450"

Test #66:

score: 0
Accepted
time: 2ms
memory: 7760kb

input:

50 47 8602515
9 21 4951
9 38 965
9 39 1006
9 32 2127
9 12 5634
9 47 2328
9 17 2540
9 33 2412
9 27 2005
9 28 8990
9 4 5341
9 29 3100
9 25 2802
9 10 8525
9 2 6125
9 11 1661
9 31 911
9 1 8507
9 19 7677
9 36 9649
9 3 2648
9 5 2229
9 23 6001
9 6 3534
9 42 3243
9 13 5497
9 40 9857
9 24 172
9 34 1578
9 50 ...

output:

386434677

result:

ok 1 number(s): "386434677"

Test #67:

score: 0
Accepted
time: 2ms
memory: 7960kb

input:

50 4 86492
20 47 28
20 10 79
20 38 98
20 48 45
20 44 50
20 28 20
20 3 32
20 33 35
20 45 90
20 41 41
20 11 86
20 46 62
20 12 12
20 27 29
20 40 79
20 5 9
20 50 67
20 32 35
20 23 13
20 2 28
20 21 37
20 14 84
20 15 98
20 13 47
20 8 76
20 43 70
20 19 70
20 42 9
20 4 24
20 37 19
20 31 8
20 9 18
20 22 66
2...

output:

5527200

result:

ok 1 number(s): "5527200"

Test #68:

score: 0
Accepted
time: 0ms
memory: 9264kb

input:

50 42 409
45 26 34
45 48 23
45 14 28
45 42 35
45 33 20
45 44 28
45 27 14
45 32 41
45 31 43
45 9 38
45 10 21
45 23 8
45 49 37
45 8 12
45 3 32
45 11 26
45 37 41
45 36 17
45 19 43
45 41 10
45 12 17
45 17 8
45 7 27
45 28 7
45 47 8
45 50 10
45 20 39
45 13 27
45 22 33
45 18 35
45 5 10
45 38 30
45 34 9
45 ...

output:

385325365

result:

ok 1 number(s): "385325365"

Test #69:

score: 0
Accepted
time: 0ms
memory: 9252kb

input:

50 17 794705531
30 19 65237
19 20 9687
20 36 41056
36 37 72768
37 50 40999
50 49 9197
49 45 29663
45 17 25510
17 25 79521
25 38 6548
38 12 53430
12 32 98586
32 11 56308
11 7 59141
7 48 93166
48 21 24994
21 18 90279
18 29 50287
29 8 10856
8 2 31509
2 14 16723
14 10 45141
10 13 45016
13 9 22145
9 16 2...

output:

511377023

result:

ok 1 number(s): "511377023"

Test #70:

score: 0
Accepted
time: 0ms
memory: 7924kb

input:

50 22 502804070
22 4 6976789
4 38 3856321
38 6 8219146
6 32 7244711
32 14 7274716
14 2 744971
2 46 275674
46 25 5882253
25 33 5678294
33 23 1441311
23 3 4158618
3 45 8159134
45 50 3212827
50 36 176934
36 20 5587823
20 29 2665121
29 19 2924924
19 8 9860897
8 43 9931377
43 11 3480047
11 13 802938
13 3...

output:

153738093

result:

ok 1 number(s): "153738093"

Test #71:

score: 0
Accepted
time: 0ms
memory: 8864kb

input:

50 19 952862381
18 22 471347615
22 7 935334411
7 34 784323793
34 26 745845724
26 46 44634682
46 25 477247878
25 49 734356608
49 21 766581026
21 38 720488864
38 37 711722306
37 23 869551870
23 32 288481061
32 16 507163324
16 30 255438887
30 6 106127950
6 43 528275574
43 50 674835534
50 13 828272906
1...

output:

0

result:

ok 1 number(s): "0"

Test #72:

score: 0
Accepted
time: 3ms
memory: 8340kb

input:

50 8 7209672
48 6 5026
6 28 907
28 40 1116
40 26 9716
26 14 3749
14 42 6621
42 11 9699
11 5 600
5 23 5793
23 43 1610
43 1 6881
1 39 1014
39 47 1268
47 21 1639
21 46 7881
46 32 6242
32 10 8243
10 22 1403
22 4 2207
4 18 8536
18 2 9269
2 27 8084
27 45 6509
45 50 3045
50 34 3860
34 44 4832
44 9 9839
9 3...

output:

947016478

result:

ok 1 number(s): "947016478"

Test #73:

score: 0
Accepted
time: 3ms
memory: 8500kb

input:

50 49 65610
11 20 28
20 27 4
27 25 65
25 29 83
29 1 56
1 50 25
50 42 55
42 44 20
44 49 44
49 18 29
18 43 74
43 8 77
8 24 52
24 26 47
26 10 45
10 16 27
16 3 22
3 37 24
37 13 41
13 5 24
5 12 83
12 46 75
46 15 19
15 6 90
6 19 80
19 30 74
30 34 88
34 41 48
41 38 6
38 23 51
23 28 73
28 21 3
21 17 94
17 3...

output:

318608048

result:

ok 1 number(s): "318608048"

Test #74:

score: 0
Accepted
time: 0ms
memory: 8460kb

input:

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

output:

886083225

result:

ok 1 number(s): "886083225"

Test #75:

score: 0
Accepted
time: 2ms
memory: 7788kb

input:

50 7 114499261
19 44 63054
19 34 2263
19 16 74361
19 41 82090
19 42 8395
19 9 79451
44 2 82689
34 30 63871
16 25 19877
41 31 2585
42 29 68023
9 26 94135
2 48 58384
30 7 11131
25 37 3235
31 22 83133
29 8 88709
26 38 51280
48 43 87567
7 35 99618
37 32 83938
22 14 7177
8 13 84427
38 15 44219
43 50 4807...

output:

417372479

result:

ok 1 number(s): "417372479"

Test #76:

score: -100
Wrong Answer
time: 3ms
memory: 7892kb

input:

50 13 19741689
5 22 3517527
5 32 7253443
5 27 985802
5 40 6841210
5 38 2160166
22 9 4357045
32 39 566603
27 28 791622
40 19 690466
38 48 4360759
9 12 7329665
39 25 3377478
28 15 9562195
19 13 2966064
48 18 6033783
12 37 9063346
25 16 368617
15 6 5087436
13 29 5295647
18 17 6241735
37 30 7749813
16 3...

output:

738326090

result:

wrong answer 1st numbers differ - expected: '433496373', found: '738326090'