Submission #12052986


Source Code Expand

Copy
c,d=map(int,input().split())
def f(x):
    #[0,x)までに好きな曲

    d=1;cnt=0
    while not(d*170<=x<2*d*170):
        d*=2;cnt+=1
    return 30*(2*d-1)+max(0,x-2*d*140)
print(f(d)-f(c))

Submission Info

Submission Time
Task A - Feel the Beat
User arahi10
Language PyPy3 (2.4.0)
Score 0
Code Size 202 Byte
Status
Exec Time 2106 ms
Memory 44636 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 2106 ms 44508 KB
a02 168 ms 38256 KB
a03 2106 ms 44508 KB
b04 2106 ms 44636 KB
b05 172 ms 38256 KB
b06 2106 ms 44508 KB
b07 169 ms 38256 KB
b08 176 ms 38256 KB
b09 174 ms 38256 KB
b10 177 ms 38256 KB
b11 173 ms 38256 KB
b12 171 ms 38256 KB
b13 169 ms 38256 KB
b14 170 ms 38256 KB
b15 173 ms 38256 KB