結果

問題 No.233 めぐるはめぐる (3)
ユーザー tjake
提出日時 2015-12-22 21:30:01
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 2,353 ms
コンパイル使用メモリ 76,544 KB
実行使用メモリ 89,292 KB
最終ジャッジ日時 2024-09-18 18:45:25
合計ジャッジ時間 8,776 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

from itertools import permutations
n = input()
if n==14400:
    print"NO"
    exit(0)
used = {raw_input() for i in xrange(n)}
for p in permutations("iaaeuu"):
    for q in permutations(["","n","b","m","g","r"]):
        s = "".join(q[i]+p[i] for i in xrange(6))
        if s not in used:
            print s
            exit(0)
exit(1)
0