結果
| 問題 |
No.2268 NGワード回避
|
| コンテスト | |
| ユーザー |
sepa38
|
| 提出日時 | 2023-04-14 21:41:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 104 ms / 2,000 ms |
| コード長 | 216 bytes |
| コンパイル時間 | 163 ms |
| コンパイル使用メモリ | 82,456 KB |
| 実行使用メモリ | 77,056 KB |
| 最終ジャッジ日時 | 2024-10-10 12:23:24 |
| 合計ジャッジ時間 | 4,359 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 52 |
ソースコード
n = int(input())
s = set([input() for _ in range(n)])
for i in range(1<<n):
cnd = []
for j in range(n):
cnd.append(chr(97+i%2))
i //= 2
if "".join(cnd) in s:
continue
print(*cnd, sep = "")
break
sepa38