QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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)
Details
answer.code:1:1: error: ‘n’ does not name a type 1 | n, tot = map(int, input().split()) | ^