QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#487864#8746. 排列游戏Shui_Dream#RE 1400ms9724kbC++231.3kb2024-07-23 11:44:472024-07-23 11:44:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1400ms
memory: 9724kb

input:

6
2 1
3 1
5 2
7 5
10 20
15 24

output:

1
2
7
331
1570446
73880648

result:

ok 6 lines

Test #2:

score: -100
Runtime Error

input:

990
19 16
20 74
15 32
21 22
14 22
13 36
16 58
14 4
19 44
14 46
21 110
22 86
19 32
16 22
19 17
12 28
20 25
20 59
22 65
21 52
13 32
18 48
14 35
19 37
19 23
21 21
22 90
22 72
21 101
17 20
18 46
21 3
7 12
12 36
16 49
14 15
13 17
20 42
13 42
13 11
22 47
15 22
22 32
19 39
19 65
21 98
19 3
16 24
18 6
22 63...

output:

393168729
246435507
711223131
161825104
979987145
971749586
25952856
2012
726099192
449177299
36423651
633817565
948448065
655086320
599308309
200783520
73244890
494204020
502991859
971176215
490633490
493983396
970265909
703034171
617628639
906119212
329471797
918718406
613644638
276565385
62885054...

result: