View problem - Necklace (Subtask 1-3) (BOI19_necklace1)

Time limitMemory limit# of submissions# of submitted usersSolved #Accepted user ratio
1500 ms1024 MiB97217110259.65%

Unlike in the official contest, we don't give additional time and memory to Python or Java.