結果
問題 |
No.233 めぐるはめぐる (3)
|
ユーザー |
![]() |
提出日時 | 2025-08-13 22:06:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 447 ms / 1,000 ms |
コード長 | 437 bytes |
コンパイル時間 | 449 ms |
コンパイル使用メモリ | 82,344 KB |
実行使用メモリ | 92,052 KB |
最終ジャッジ日時 | 2025-08-13 22:06:33 |
合計ジャッジ時間 | 5,448 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
from itertools import permutations N = int(input()) S = set([input() for _ in range(N)]) A = ["","n","b","m","g","r"] B = ["i","a","a","e","u","u"] for X in permutations(range(6),6): for Y in permutations(range(6),6): tmp = [] for i in range(6): tmp.append(A[X[i]]) tmp.append(B[Y[i]]) tmp = "".join(tmp) if tmp not in S: print(tmp) exit() print("NO")