Anti-Tetris
1578A2800· international gm2s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
3 2aaabaa
Output
22 DS1 S
Sample 2of 3
Input
5 6....dd.ccccd.cbbdd.aab.aaabbaa
Output
52 DDDS4 DDLS6 DDDS2 DS5 S
Sample 3of 3
Input
5 3...aababbaab.bb
Output
-1
58%
1578A.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)
loading graph engine…