cf/mirror

Appleman and Card Game

CF
462B1300· pupil1s256 MB⌨ stdin/stdout
#greedy

Examples

Sample 1of 2
Input
15 10
DZFDFZDFDDDDDDF
Output
82
Sample 2of 2
Input
6 4
YJSNPI
Output
4
462B.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)