QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#894818#2476. Pizzo Collectors剁椒鱼头 (Congding Wen, Haozhe Xu, Zhuo Zhang) TL 0ms7908kbC++231.5kb2025-02-11 21:12:492025-02-11 21:12:49

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 7908kb

input:

8
?A?B?A?C
3
A 1
B 1000
C 100000

output:

1301004

result:

ok single line: '1301004'

Test #2:

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

input:

4
ABCD
4
A 4
B 3
C 2
D 1

output:

10

result:

ok single line: '10'

Test #3:

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

input:

2
AB
2
A 1
B 2

output:

3

result:

ok single line: '3'

Test #4:

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

input:

7
???????
3
A 1
B 3
C 2

output:

42

result:

ok single line: '42'

Test #5:

score: -100
Time Limit Exceeded

input:

1
?
26
A 1
B 2
C 3
D 4
E 5
F 6
G 7
H 8
I 9
J 10
K 11
L 12
M 13
N 14
O 15
P 16
Q 17
R 18
S 19
T 20
U 21
V 22
W 23
X 24
Y 25
Z 26

output:


result: