QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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)
Details
Tip: Click on the bar to expand more detailed information
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'