B - Cooperative Trash Sorting (B)
解説
/


実行時間制限: 2 sec / メモリ制限: 1024 MiB
この問題はA問題と同じで入力のみ異なります。 詳細はA問題を参照下さい。
This problem is the same as Problem A, differing only in input. See Problem A for details.