Submission #12053326


Source Code Expand

Copy
c,d=map(int,input().split())
r,l=170,140
ans=0
while r<=d:
    if c<=l<=r:ans+=r-l
    elif l<c<r:ans+=c-l+1
    r*=2;l*=2
print(ans)

Submission Info

Submission Time
Task A - Feel the Beat
User arahi10
Language PyPy3 (2.4.0)
Score 0
Code Size 140 Byte
Status
Exec Time 164 ms
Memory 38256 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 a01, a02, a03
All 0 / 300 a01, a02, a03, b04, b05, b06, b07, b08, b09, b10, b11, b12, b13, b14, b15
Case Name Status Exec Time Memory
a01 164 ms 38256 KB
a02 162 ms 38256 KB
a03 160 ms 38256 KB
b04 160 ms 38256 KB
b05 163 ms 38256 KB
b06 160 ms 38256 KB
b07 163 ms 38256 KB
b08 161 ms 38256 KB
b09 160 ms 38256 KB
b10 161 ms 38256 KB
b11 160 ms 38256 KB
b12 161 ms 38256 KB
b13 160 ms 38256 KB
b14 160 ms 38256 KB
b15 161 ms 38256 KB