結果
| 問題 | No.2268 NGワード回避 |
| コンテスト | |
| ユーザー |
Moss_Local
|
| 提出日時 | 2023-03-08 00:12:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 1,012 bytes |
| 記録 | |
| コンパイル時間 | 502 ms |
| コンパイル使用メモリ | 20,700 KB |
| 実行使用メモリ | 20,600 KB |
| 最終ジャッジ日時 | 2026-04-06 13:04:17 |
| 合計ジャッジ時間 | 18,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 52 |
ソースコード
from itertools import combinations
from cgitb import reset
from collections import defaultdict
from functools import lru_cache
from sys import flags, stdin
import math
import re
import queue
from tokenize import String
import typing
import itertools
import bisect
import statistics
# import numpy as np
# from numpy.core.function_base import _needs_add_docstring
# from numpy.core.numeric import outer
input = stdin.readline
MOD = 1000000007
INF = 122337203685477580
def solve():
n = int(input())
# set
st = set()
for _ in range(n):
# read string remove line break
s = input().rstrip()
st.add((s))
# print(st)
nn = min(10, n)
for i in range(2**nn):
s = ""
for j in range(0, nn):
if (i >> j) & 1:
s += "a"
else:
s += "b"
while len(s) < n:
s += "a"
if s not in st:
print(s)
return
return
if __name__ == '__main__':
solve()
Moss_Local