結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー |
👑 |
提出日時 | 2022-07-12 14:01:51 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 405 bytes |
コンパイル時間 | 361 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 77,028 KB |
最終ジャッジ日時 | 2024-06-23 10:55:20 |
合計ジャッジ時間 | 7,379 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 2 WA * 9 |
ソースコード
import itertoolsse = set()S = "iaaeuu"T = "nbmgr"for s in itertools.permutations(S):for t in itertools.permutations(T):name = []for s, t in zip(S, T):name.append(s + t)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")