結果
| 問題 |
No.233 めぐるはめぐる (3)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-12 14:04:21 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 414 bytes |
| コンパイル時間 | 578 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 78,592 KB |
| 最終ジャッジ日時 | 2024-06-23 10:59:24 |
| 合計ジャッジ時間 | 4,961 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 2 |
ソースコード
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")