結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 159 ms
85,248 KB
testcase_01 AC 121 ms
82,420 KB
testcase_02 AC 91 ms
78,652 KB
testcase_03 AC 127 ms
82,420 KB
testcase_04 AC 347 ms
85,172 KB
testcase_05 AC 284 ms
85,176 KB
testcase_06 AC 265 ms
85,336 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 43 ms
56,964 KB
testcase_10 AC 42 ms
56,964 KB
testcase_11 AC 42 ms
56,964 KB
testcase_12 AC 123 ms
82,420 KB
testcase_13 AC 159 ms
85,248 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