QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#570181 | #6558. Allergen Testing | UESTC_DECAYALI# | Compile Error | / | / | C++20 | 173b | 2024-09-17 14:33:11 | 2024-09-17 14:33:13 |
Judging History
answer
for _ in range(int(input())):
n, k = map(int, input().split())
ans = 1
k += 1
i = k
while i < n:
ans += 1
i *= k
print(ans)
Details
answer.code:1:1: error: expected unqualified-id before ‘for’ 1 | for _ in range(int(input())): | ^~~