Submission #3711674


Source Code Expand

N, S, T = map(int, input().split())

ans = 0
while S<T:
  T = T // 2
  ans += 1

if S>T:
  print(-1)
else:
  print(ans)

Submission Info

Submission Time
Task B - Camphor Tree
User mo2
Language Python (3.4.3)
Score 100
Code Size 129 Byte
Status AC
Exec Time 17 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 17 ms 2936 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