QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#520333 | #8777. Passport Stamps | hydrolyzed_ | Compile Error | / | / | C++14 | 186b | 2024-08-15 13:01:46 | 2024-08-15 13:01:46 |
Judging History
answer
n, tot = map(int, input().split())
for i in range(1, n + 1):
x = int(input())
tot -= x - 1
if (tot - 1) // x + 1 < i:
print(i - 1)
exit(0)
print(n)
詳細信息
answer.code:1:1: error: ‘n’ does not name a type 1 | n, tot = map(int, input().split()) | ^