编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#4921 | #1026. 贝尔数 | Compile Error | 0 | 0 ms | 0 K | Python 3 / 526 B | t330034045 | 2024-02-20 22:24:02 |
maxn = 2000 + 5
mod=95041567
bell = [[0 for i in range(maxn + 1)] for j in range(maxn + 1)]
def f(n):
bell[0][0] = 1
for i in range(1, n + 1):
bell[i][0] = bell[i - 1][i - 1]
for j in range(1, i + 1):
bell[i][j] = bell[i - 1][j - 1] + bell[i][j - 1]
return bell[n][0]
n=int(input())
for i in range(n):
ans=f(int(input()))
ans=int(ans%mod)
print(ans)
编译信息
Traceback (most recent call last):
File "/usr/lib/python3.8/py_compile.py", line 144, in compile
code = loader.source_to_code(source_bytes, dfile or file,
File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "a.py", line 1
maxn = 2000 + 5
^
SyntaxError: invalid character in identifier
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/py_compile.py", line 209, in main
compile(filename, doraise=True)
File "/usr/lib/python3.8/py_compile.py", line 150, in compile
raise py_exc
__main__.PyCompileError: File "a.py", line 1
maxn = 2000 + 5
^
SyntaxError: invalid character in identifier
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/py_compile.py", line 218, in <module>
sys.exit(main())
File "/usr/lib/python3.8/py_compile.py", line 213, in main
if quiet < 2:
NameError: name 'quiet' is not defined