Submission #15123980


Source Code Expand

Copy
c, d = map(int, input().split())
 
ans = 0
i = 0
while 140 * (2 ** i) <= 10 ** 15:
  ans += max(min(170 * (2 ** i), d) - max(140 * (2 ** i), c), 0)
  i += 1
  
print(ans)

Submission Info

Submission Time
Task A - Feel the Beat
User hiraku
Language Python (3.8.2)
Score 300
Code Size 178 Byte
Status
Exec Time 26 ms
Memory 9124 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02, a03
All 300 / 300 a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15
Case Name Status Exec Time Memory
a01 25 ms 8860 KB
a02 22 ms 8852 KB
a03 24 ms 9016 KB
b04 25 ms 8952 KB
b05 19 ms 8856 KB
b06 18 ms 8856 KB
b07 20 ms 9008 KB
b08 22 ms 9080 KB
b09 26 ms 8856 KB
b10 24 ms 8856 KB
b11 23 ms 9008 KB
b12 19 ms 9076 KB
b13 17 ms 9124 KB
b14 17 ms 8860 KB
b15 22 ms 9080 KB