QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#106552#6362. Accommodation PlanDitaMirikaWA 327ms67128kbC++143.4kb2023-05-18 02:39:502023-05-18 02:39:53

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 7472kb

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: 327ms
memory: 67128kb

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: 3ms
memory: 7676kb

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: 1ms
memory: 7468kb

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: 3ms
memory: 7524kb

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: 2ms
memory: 7520kb

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: 3ms
memory: 7532kb

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: 3ms
memory: 9624kb

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: 3ms
memory: 7456kb

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: 3ms
memory: 9732kb

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: -100
Wrong Answer
time: 3ms
memory: 7696kb

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:

0

result:

wrong answer 1st numbers differ - expected: '6', found: '0'