結果

問題 No.233 めぐるはめぐる (3)
ユーザー tjaketjake
提出日時 2015-12-22 21:30:01
言語 PyPy2
(7.3.15)
結果
RE  
実行時間 -
コード長 335 bytes
コンパイル時間 738 ms
コンパイル使用メモリ 77,556 KB
実行使用メモリ 89,604 KB
最終ジャッジ日時 2023-10-18 22:45:39
合計ジャッジ時間 8,421 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 145 ms
87,412 KB
testcase_01 AC 122 ms
87,416 KB
testcase_02 AC 100 ms
80,916 KB
testcase_03 AC 128 ms
87,416 KB
testcase_04 AC 586 ms
89,600 KB
testcase_05 AC 428 ms
89,600 KB
testcase_06 AC 306 ms
89,600 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 73 ms
76,320 KB
testcase_10 AC 74 ms
76,320 KB
testcase_11 AC 72 ms
76,320 KB
testcase_12 AC 122 ms
87,416 KB
testcase_13 AC 143 ms
87,416 KB
権限があれば一括ダウンロードができます

ソースコード

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