結果

問題 No.233 めぐるはめぐる (3)
ユーザー TsubajiroTsubajiro
提出日時 2022-05-19 00:41:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 463 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 11,852 KB
実行使用メモリ 22,360 KB
最終ジャッジ日時 2023-10-17 06:19:56
合計ジャッジ時間 12,604 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 288 ms
22,072 KB
testcase_01 AC 196 ms
21,008 KB
testcase_02 AC 110 ms
14,740 KB
testcase_03 AC 217 ms
21,008 KB
testcase_04 TLE -
testcase_05 AC 981 ms
22,360 KB
testcase_06 AC 863 ms
22,336 KB
testcase_07 TLE -
testcase_08 TLE -
testcase_09 AC 60 ms
10,256 KB
testcase_10 AC 60 ms
10,256 KB
testcase_11 AC 61 ms
10,256 KB
testcase_12 AC 334 ms
21,008 KB
testcase_13 AC 534 ms
22,336 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
S = []
candi = set()
for _ in range(N):
    candi.add(input())
s = ["n","b","m","g","r",""]
b = ["i","a","a","e","u","u"]
#print(candi)

import itertools
ss = list(itertools.permutations(s))
bb = list(itertools.permutations(b))
#print(ss)
#sprint(ss)
flag=False
for i in ss:
    for j in bb:
        ca = ""
        for k in range(len(i)):
            ca+=i[k]+j[k]
        if ca not in candi:
            print(ca)
            exit()
print("No")
0