結果

問題 No.233 めぐるはめぐる (3)
コンテスト
ユーザー tjake
提出日時 2015-12-22 21:28:54
言語 PyPy2
(7.3.20)
コンパイル:
pypy2 -m py_compile _filename_
実行:
/usr/bin/pypy2 Main.pyc
結果
RE  
実行時間 -
コード長 335 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 66 ms
コンパイル使用メモリ 81,152 KB
実行使用メモリ 97,152 KB
最終ジャッジ日時 2026-07-18 01:28:17
合計ジャッジ時間 5,694 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 RE * 2
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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