結果

問題 No.233 めぐるはめぐる (3)
ユーザー ntuda
提出日時 2025-08-13 22:05:04
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 82,640 KB
実行使用メモリ 92,112 KB
最終ジャッジ日時 2025-08-13 22:05:12
合計ジャッジ時間 7,066 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

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()
0