結果

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

ソースコード

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