cf/mirror

LionAge II

CF
73C1800· expert2s256 MB⌨ stdin/stdout
#dp

Examples

Sample 1of 2
Input
winner 4
4
s e 7
o s 8
l o 13
o o 8
Output
36
Sample 2of 2
Input
abcdef 1
5
a b -10
b c 5
c d 5
d e 5
e f 5
Output
20
73C.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)