QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#623039 | #5721. Dividing by Two | DaAsianCarsten# | WA | 9ms | 10652kb | Python3 | 222b | 2024-10-09 09:45:28 | 2024-10-09 09:45:29 |
Judging History
answer
input = input().split()
a = int(input[0])
b = int(input[1])
count = 0
while a > b:
if a%2==0:
a = a/2
count += 1
else:
a += 1
count += 1
count += b-a
print(count)
详细
Test #1:
score: 0
Wrong Answer
time: 9ms
memory: 10652kb
input:
103 27
output:
4.0
result:
wrong answer 1st lines differ - expected: '4', found: '4.0'