結果

問題 No.233 めぐるはめぐる (3)
ユーザー tjaketjake
提出日時 2015-12-22 21:28:54
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 335 bytes
コンパイル時間 389 ms
コンパイル使用メモリ 7,164 KB
実行使用メモリ 16,776 KB
最終ジャッジ日時 2023-10-18 22:45:22
合計ジャッジ時間 8,942 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 169 ms
16,708 KB
testcase_01 AC 113 ms
12,300 KB
testcase_02 AC 61 ms
10,508 KB
testcase_03 AC 126 ms
16,708 KB
testcase_04 TLE -
testcase_05 AC 741 ms
16,708 KB
testcase_06 AC 487 ms
16,708 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 AC 12 ms
6,572 KB
testcase_10 AC 11 ms
6,572 KB
testcase_11 AC 11 ms
6,572 KB
testcase_12 AC 108 ms
12,300 KB
testcase_13 AC 168 ms
16,708 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