結果

問題 No.233 めぐるはめぐる (3)
ユーザー 👑 rin204rin204
提出日時 2022-07-12 14:04:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 414 bytes
コンパイル時間 262 ms
コンパイル使用メモリ 87,208 KB
実行使用メモリ 79,872 KB
最終ジャッジ日時 2023-09-05 15:26:20
合計ジャッジ時間 5,728 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 207 ms
79,604 KB
testcase_01 AC 182 ms
79,668 KB
testcase_02 AC 164 ms
79,600 KB
testcase_03 AC 185 ms
79,540 KB
testcase_04 AC 205 ms
79,496 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 203 ms
79,872 KB
testcase_08 AC 204 ms
79,364 KB
testcase_09 AC 123 ms
78,516 KB
testcase_10 AC 124 ms
78,512 KB
testcase_11 AC 125 ms
78,452 KB
testcase_12 AC 184 ms
79,592 KB
testcase_13 AC 202 ms
79,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools

se = set()
S = "iaaeuu"
T = "nbmgr"
for s in itertools.permutations(S):    
    for t in itertools.permutations(T):
        name = []
        for ss, tt in zip(s, t):
            name.append(ss + tt)
        name.append(s[-1])
        se.add("".join(name))

n = int(input())
for _ in range(n):
    S = input()
    if S in se:
        se.remove(S)

for s in se:
    print(s)
    exit()
print("NO")
0