B - Cooperative Trash Sorting (B)
Editorial
/


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