結果

問題 No.233 めぐるはめぐる (3)
ユーザー TsubajiroTsubajiro
提出日時 2022-05-19 00:45:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 426 bytes
コンパイル時間 982 ms
コンパイル使用メモリ 81,816 KB
実行使用メモリ 85,396 KB
最終ジャッジ日時 2023-10-17 06:23:25
合計ジャッジ時間 5,865 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 152 ms
85,236 KB
testcase_01 AC 115 ms
82,484 KB
testcase_02 AC 87 ms
78,736 KB
testcase_03 AC 124 ms
82,484 KB
testcase_04 AC 327 ms
85,236 KB
testcase_05 AC 266 ms
85,240 KB
testcase_06 AC 247 ms
85,236 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 41 ms
57,048 KB
testcase_10 AC 40 ms
57,048 KB
testcase_11 AC 42 ms
57,048 KB
testcase_12 AC 118 ms
82,484 KB
testcase_13 AC 150 ms
85,396 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))

for i in ss:
    for j in bb:
        ca = ""
        for k in range(6):
            ca+=i[k]+j[k]
        if ca not in candi:
            print(ca)
            exit()
print("No")
0