QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#68483 | #5103. Fair Division | nocriz# | WA | 9ms | 8544kb | Python3 | 251b | 2022-12-16 20:18:52 | 2022-12-16 20:18:54 |
Judging History
answer
n, m = map(int, input().split())
qn = [1]
for i in range(2, 10000000):
v = pow(i, n)
if v - qn[-1] > m:
print("impossible")
quit()
for j in range(i-2, -1, -1):
if m % (v - qn[j]) == 0:
print(i-(j+1), i)
quit()
qn.append(v)
詳細信息
Test #1:
score: 0
Wrong Answer
time: 9ms
memory: 8544kb
input:
13 382475111752106101
output:
impossible
result:
wrong answer 1st lines differ - expected: '17 28', found: 'impossible'