QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#612387#5970. Typewriter Monkeylmq2605200333 ✓296ms3992kbC++203.0kb2024-10-05 10:49:352024-10-05 10:49:36

详细

Subtask #1:

score: 11
Accepted

Test #1:

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

input:

100
6 1 2
TBQYOO
T
6 3 7
MNFBXW
MBM
7 3 4
WWWOWWW
WWW
1 3 3
V
VVV
7 1 5
YYYERYW
Y
4 5 7
AECC
ACCAC
1 1 2
C
C
1 3 3
P
PPP
1 1 1
M
M
7 7 7
IIIIIII
IIIIIII
1 2 3
L
LL
6 1 2
GGNGNN
G
6 1 5
PGZAFW
P
6 1 5
YTJXCV
V
7 4 5
SUOYEQM
OESM
4 2 3
FPGD
FP
1 6 7
X
XXXXXX
3 3 5
MRX
XRX
7 4 4
JAKNKFE
JKNF
3 2 7
OVU
...

output:

Case #1: 1.6666666667
Case #2: 2.9768518519
Case #3: 0.7405247813
Case #4: 0.0000000000
Case #5: 2.1428571429
Case #6: 0.9765625000
Case #7: 0.0000000000
Case #8: 0.0000000000
Case #9: 0.0000000000
Case #10: 0.0000000000
Case #11: 0.0000000000
Case #12: 1.0000000000
Case #13: 4.1666666667
Case #14: ...

result:

ok correct! (100 test cases)

Subtask #2:

score: 22
Accepted

Test #2:

score: 22
Accepted
time: 296ms
memory: 3992kb

input:

100
100 8 31
RRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRXRRRRRRRRRRRRRRR
RRRRRRRR
99 1 34
HABAGPCLUOJSXXKTSIFRBAZNKMFEKTWBJTNXKRWNDBDPYEKBHGASUIXXWQHUIZXHWCHJXSRTMHDTJKFZFAIGHBVLTQBVHUKIBCD
S
49 32 78
VRBRTHNEQAPPDVIHLPBOFAJGRJHTIJLKHHWAOOMKCPOYCCZSP
OBMIKOYQ...

output:

Case #1: 1.8541273337
Case #2: 32.6262626263
Case #3: 2.0000000000
Case #4: 1.0000000000
Case #5: 21.7170300000
Case #6: 2.0000000000
Case #7: 6.4600000000
Case #8: 2.9912109375
Case #9: 1.0000000000
Case #10: 4.9981440000
Case #11: 1.0000000000
Case #12: 43.4909090909
Case #13: 2.0000000000
Case #1...

result:

ok correct! (100 test cases)

Extra Test:

score: 0
Extra Test Passed