Submission #2627898


Source Code Expand

n,s,t = (int(i) for i in input().split())
if s>t: print(-1)
else:
	num = 0
	while t>s:
		t,num = t//2,num+1
	if t==s: print(num)
	else: print(-1)

Submission Info

Submission Time
Task B - Camphor Tree
User Clamperl
Language Python (3.4.3)
Score 100
Code Size 152 Byte
Status AC
Exec Time 19 ms
Memory 2940 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 13
Set Name Test Cases
All 00_sample, 01_sample, 02_sample, max_01, max_02, max_03, max_04, max_05, max_06, max_07, max_08, max_09, min_00
Case Name Status Exec Time Memory
00_sample AC 17 ms 2940 KB
01_sample AC 17 ms 2940 KB
02_sample AC 17 ms 2940 KB
max_01 AC 17 ms 2940 KB
max_02 AC 17 ms 2940 KB
max_03 AC 19 ms 2940 KB
max_04 AC 17 ms 2940 KB
max_05 AC 17 ms 2940 KB
max_06 AC 17 ms 2940 KB
max_07 AC 17 ms 2940 KB
max_08 AC 17 ms 2940 KB
max_09 AC 17 ms 2940 KB
min_00 AC 17 ms 2940 KB