結果
問題 | No.233 めぐるはめぐる (3) |
ユーザー |
👑 |
提出日時 | 2022-07-12 14:11:06 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 593 bytes |
コンパイル時間 | 356 ms |
コンパイル使用メモリ | 82,224 KB |
実行使用メモリ | 95,744 KB |
最終ジャッジ日時 | 2024-06-23 11:15:16 |
合計ジャッジ時間 | 5,671 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 2 -- * 9 |
ソースコード
se = set()T = []used = [False] * 11S = "inamameguru"T = []bo = set(["i", "a", "e", "u"])def dfs(t):if t == 11:if T[-1] in bo:se.add("".join(T))returnfor i in range(11):if used[i]:continueif t != 0 and T[-1] not in bo and S[i] not in bo:continueT.append(S[i])used[i] = Truedfs(t + 1)T.pop()used[i] = Falsedfs(0)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")