結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
87,412 KB
testcase_01 AC 127 ms
87,416 KB
testcase_02 AC 98 ms
80,916 KB
testcase_03 AC 125 ms
87,416 KB
testcase_04 AC 543 ms
89,492 KB
testcase_05 AC 415 ms
89,492 KB
testcase_06 AC 299 ms
89,492 KB
testcase_07 RE -
testcase_08 RE -
testcase_09 AC 76 ms
76,320 KB
testcase_10 AC 76 ms
76,320 KB
testcase_11 AC 75 ms
76,320 KB
testcase_12 AC 125 ms
87,416 KB
testcase_13 AC 142 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)}
q_perm = list(permutations(["","n","b","m","g","r"]))
r6 = range(6)
for p in permutations("iaaeuu"):
    for q in q_perm:
        s = "".join(q[i]+p[i] for i in r6)
        if s not in used:
            print s
            exit(0)
exit(1)
0