s_id
stringlengths
10
10
p_id
stringlengths
6
6
u_id
stringlengths
10
10
date
stringlengths
10
10
language
stringclasses
1 value
original_language
stringclasses
11 values
filename_ext
stringclasses
1 value
status
stringclasses
1 value
cpu_time
stringlengths
1
5
memory
stringlengths
1
7
code_size
stringlengths
1
6
code
stringlengths
1
539k
s571784150
p03478
u595539169
1540958966
Python
Python (3.4.3)
py
Runtime Error
17
3060
299
def sumDigit(n): sum = 0 while(n > 0): sum += n % 10 n //= 10 return sum n = int(input()) a = int(input()) b = int(input()) total = 0 for i in range(1, n+1): sum = sumDigit(i) if(a<= sumDigit(i) <=b): total += i print(total)
s875294253
p03478
u595539169
1540958829
Python
Python (3.4.3)
py
Runtime Error
18
3064
335
def sumDigit(n): s = 0 while True: n, t = divmod(n, 10) s = s + t if n == 0: break return s n = int(input()) a = int(input()) b = int(input()) total = 0 for i in range(1, n+1): sum = sumDigit(i) if(a<= sumDigit(i) <=b): total += i print(total) #...
s427475726
p03478
u595539169
1540958796
Python
Python (3.4.3)
py
Runtime Error
18
3060
299
def sumDigit(n): sum = 0 while(n > 0): sum += n % 10 n //= 10 return sum n = int(input()) a = int(input()) b = int(input()) total = 0 for i in range(1, n+1): sum = sumDigit(i) if(a<= sumDigit(i) <=b): total += i print(total)
s750843422
p03478
u595539169
1540958584
Python
Python (3.4.3)
py
Runtime Error
17
3060
299
def sumDigit(n): sum = 0 while(n > 0): sum += n % 10 n //= 10 return sum n = int(input()) a = int(input()) b = int(input()) total = 0 for i in range(1, n+1): sum = sumDigit(i) if(a<= sumDigit(i) <=b): total += i print(total)
s542705694
p03478
u658993896
1540428079
Python
Python (3.4.3)
py
Runtime Error
24
3060
219
def sum_(a): ans=0 while a!=0: ans+=a%10 a//=10 return ans N,A,B=list(map(int,input().split())) arr=[0 for i in range(36)] for i in range(1,N+1): arr[sum_(i)]+=i print(sum(arr[A:B+1]))
s426943106
p03478
u005260772
1540165801
Python
Python (2.7.6)
py
Runtime Error
13
2696
143
n, a, b, ans = map(int, raw_input().split()), 0 for _ in range(n + 1): if a <= sum(map(int, list(str(i)))) <= b: ans += i print ans
s896924822
p03478
u506689504
1538893669
Python
Python (3.4.3)
py
Runtime Error
34
3060
138
n, a, b = map(int, input().split()) for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s006220625
p03478
u693776163
1538778134
Python
Python (3.4.3)
py
Runtime Error
17
3064
295
N = int(input()) A = int(input()) B = int(input()) amari = 1 result = 0 for i in range(1,N+1): number = i sum = 0 amari = 0 while number: number, amari = divmod(number,10) sum += amari print(number) if A <= sum <= B: result += i print(result)
s656359167
p03478
u940102677
1538425065
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
n,a,b = map(int,input().split()) c = 0 for k in range(a,b+1): if sum(list(map(int, list(str(k)))): c += 1 print(c)
s330413525
p03478
u416964274
1538104526
Python
Python (3.4.3)
py
Runtime Error
17
2940
149
n, b, c = map(int, input().split("")) ans = 0 for i in range(n + 1): if b <= sum(list(map(int, list(str(i))))) <= c: ans += i print(ans)
s058065522
p03478
u388323466
1537640394
Python
Python (3.4.3)
py
Runtime Error
18
3060
242
N = int(input()) A, B = map(int,input().split()) ans = 0 arr = [] for y in range(N+1): i = y while i >= 1: arr.append(int(i % 10)) i /= 10 if sum(arr) <= B and sum(arr) >= A: ans += sum(arr) arr = [] else: arr = [] print(ans)
s954514264
p03478
u932465688
1536550662
Python
Python (3.4.3)
py
Runtime Error
18
3188
193
A,B = map(int,input().split()) S = input() L = [0,1,2,3,4,5,6,7,8,9] for i in (range(A) and range(A+1,A+B+1)): if (S[i] in L): if (S[A] == '-'): print('Yes') else: print('No')
s782156059
p03478
u932465688
1536535658
Python
Python (3.4.3)
py
Runtime Error
17
3060
178
N,A,B = map(int,input().split()) L = [] for i in range(1,N+1): k = str(i) for j in range(len(k)): S = sum(int(k[j])) if (A <= S <= B): L.append(i) print(sum(S))
s432554900
p03478
u277802731
1534689371
Python
Python (3.4.3)
py
Runtime Error
35
3572
194
#83b n,a,b=map(int,input().split()) n=[str(i) for i in range(1,n+1)] ans=0 for i in n: temp=[int(x) for x in list(str(i)) ] temp=sum(temp) if a<=temp<=b: ans+=i print(ans)
s471918702
p03478
u076564993
1534397386
Python
Python (3.4.3)
py
Runtime Error
17
2940
149
n,a,b=map(int,input().split()) ans=0 for i in range(1,n+1): num=i while num!=0: sum+=num%10 num/=10 if a<=sum<=b: ans+=i print(ans)
s842267236
p03478
u740284863
1533943637
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
N = int(input()) A = int(input()) B = int(input()) i = 0 for i in range(N +1): if A <= sum( [int(s) for s in str(i)] ) <= B: i = i+1 print(i)
s121613415
p03478
u740284863
1533943614
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
N = int(input()) A = int(input()) B = int(input()) i = 0 for i in range(N +1) if A <= sum( [int(s) for s in str(i)] ) <= B: i = i+1 print(i)
s214245035
p03478
u690536347
1533047595
Python
Python (3.4.3)
py
Runtime Error
17
2940
102
N,A,B=map(int,raw_input().split()) print(sum([i for i in range(1,N+1) if A<=sum(map(int,str(i)))<=B]))
s851790270
p03478
u115682115
1532158659
Python
Python (3.4.3)
py
Runtime Error
28
2940
134
N,A,B = map(int,input().split()) a = 0 for i in range(1,N+1): s = sum(map(int,str(i))) if A <= s <= B: a += n print(a)
s024613427
p03478
u897436032
1530042588
Python
Python (3.4.3)
py
Runtime Error
17
2940
414
N,A,B = map(int,input().split()) output = 0 for i in range(1,N+1): # set condition for i < 10^4 if i < 10: digitsum = i elif i<100: digitsum = i//10+i%10 elif i<1000: digitsum = i//100+(i%100)//10+(i%100)%10 elif i<10000: digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10 els...
s594772707
p03478
u897436032
1530042523
Python
Python (3.4.3)
py
Runtime Error
17
2940
414
N,A,B = map(int,input().split()) output = 0 for i in range(1,N+1): # set condition for i < 10^4 if i < 10: digitsum = i elif i<100: digitsum = i//10+i%10 elif i<1000: digitsum = i//100+(i%100)//10+(i%100)%10 elif i<10000: digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10 els...
s097769402
p03478
u897436032
1530042487
Python
Python (3.4.3)
py
Runtime Error
17
2940
1659
N,A,B = map(int,input().split()) output = 0 for i in range(1,N+1): # set condition for i < 10^4 if i < 10: digitsum = i elif i<100: digitsum = i//10+i%10 elif i<1000: digitsum = i//100+(i%100)//10+(i%100)%10 elif i<10000: digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10 els...
s124295870
p03478
u897436032
1530042403
Python
Python (3.4.3)
py
Runtime Error
17
3064
830
N,A,B = map(int,input().split()) output = 0 for i in range(1,N+1): # set condition for i < 10^4 if i < 10: digitsum = i elif i<100: digitsum = i//10+i%10 elif i<1000: digitsum = i//100+(i%100)//10+(i%100)%10 elif i<10000: digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+((i%1000)%100)%10 els...
s823697922
p03478
u897436032
1530041748
Python
Python (3.4.3)
py
Runtime Error
17
3060
437
N,A,B = map(int,input().split()) output = 0 digitsum = 0 for i in range(N): # set condition for i < 10^4 if i < 10: digitsum = i//10 + i%10 elif i<100: digitsum = i//10+i%10 elif i<1000: digitsum = i//100+(i%100)//10+(i%100)%10 elif i<10000: digitsum= i//1000+(i%1000)//100+((i%1000)%100)//10+(...
s460142580
p03478
u599547273
1529872158
Python
Python (3.4.3)
py
Runtime Error
17
2940
158
n, a, b = [int(n) for n in input.split(" ")] some_sum = 0 for i in range(1, n): if a <= sum([int(m) for m in str(i)]) <= b: some_sum += i print(some_sum)
s702699468
p03478
u004025573
1529609036
Python
Python (3.4.3)
py
Runtime Error
17
2940
266
N,A,B=map(int,input().split()) sum_k=0 for i in range(N+1): if i <10: k=i elif i<100: k=i//10+i%10 elif i<1000: k=i//100+(i%100)//10+(i%100)%10 else: k=1 if A<=k and k<=B sum_k=sum_k+i print(sum_k)
s899659162
p03478
u717763253
1529263825
Python
Python (3.4.3)
py
Runtime Error
17
3060
257
n = 20 a = 2 b = 5 n = int(input()) a = int(input()) b = int(input()) sum1 = 0 for i in range(1,n+1): d = list(str(i)) sum2 = 0 for i2 in d: sum2 = sum2 + int(i2) if(a<=sum2 and sum2<=b): sum1 = sum1 + int(i) print(sum1)
s811503473
p03478
u964998676
1526589129
Python
Python (3.4.3)
py
Runtime Error
17
2940
171
N, A, B = list(map(int, input('').split())) answer = 0 for x in range(1, N + 1): total = sum(map(int, list(str(x))) if A <= total <= B: answer += x print(answer)
s212956418
p03478
u782685137
1525707308
Python
Python (3.4.3)
py
Runtime Error
21
3316
34
print(sum(map(int,list(input()))))
s244536450
p03478
u381574135
1524133926
Python
Python (3.4.3)
py
Runtime Error
17
2940
203
N, a, b = map(int, input.split()) sum = 0 for x in N: l = [int(y) for y in list(str(x))] temp_sum = 0 for z in l: tmep_sum += z if a <= temp_sum and b <= temp_sum: sum += x print(sum)
s489167525
p03478
u400596590
1523324870
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
n, a, b = map(int, input().split()) ans = 0 for i in range(n): if a <= sum(list(map(int, list(str(i))))) <= b: ans += 1 print(ans)
s798111938
p03478
u406828576
1521864316
Python
Python (3.4.3)
py
Runtime Error
17
2940
201
N = int(input()) a = int(input()) b = int(input()) result = 0 for n in range(1, N + 1): sum_n = 0 for i in str(n): sum_n += int(i) if a <= sum_n <= b: result += n print(result)
s537346644
p03478
u941884460
1520746195
Python
Python (3.4.3)
py
Runtime Error
18
3060
174
N,A,B=map(int,input()) sum = 0 for i in range(1,N+1): work = 0 for j in range(len(str(i))): work += int(str(i)[j]) if A <= work and work <=B: sum +=1 print(sum)
s135490793
p03478
u019584841
1519746376
Python
Python (3.4.3)
py
Runtime Error
17
2940
175
n, a, b = map(int, input().split() t = 0 for num in range(1, n+1): sum_dgt = sum(map(int, str(num))) if sum_dgt >= a and sum_dgt <= b: t += num print(t)
s141738015
p03478
u966000628
1517711440
Python
Python (3.4.3)
py
Runtime Error
18
2940
152
N,A,B = list(map(int,input().split())) s = 0 for i in range(1,N+1): lis = list(str(i)) if A <= sum(lis) and sum(lis) <= B: s += i print (s)
s993314831
p03478
u821432765
1515817406
Python
Python (3.4.3)
py
Runtime Error
18
3060
132
A,B,C,D=map(int,input().split()) if A+B==C+D: print("Balanced") elif A+B>C+D: print("Left") elif A+B<C+D: print("Right")
s526292318
p03478
u821432765
1515817292
Python
Python (3.4.3)
py
Runtime Error
21
3060
140
A,B,C,D=map(int,input().split()) AB=A+B CD=C+D if AB==CD: print("Balanced") elif AB>CD: print("Left") elif AB<CD: print("Right")
s079913045
p03478
u360765331
1515725494
Python
Python (3.4.3)
py
Runtime Error
17
2940
201
n,a,b = list(map(int, input().split()) ans = 0 for i in range(1,n+1): c = 0 d = 0 for j in range(5): c += t % 10 t /= 10 if a <= c and c <= b: ans += i print(i)
s317173228
p03478
u586577600
1515518278
Python
Python (3.4.3)
py
Runtime Error
18
3060
225
n, a, b = map(int, input().split()) def digitSum(n): s = str(n) array = list(map(int, list(s))) return sum(array) sum = 0 for i in range(n+1): c = digitSum(i) if a <= c and c <= b: sum += i print(sum)
s296832187
p03478
u586577600
1515518225
Python
Python (3.4.3)
py
Runtime Error
18
2940
224
n, a, b = map(int, input().split()) def digitSum(n): s = str(n) array = list(map(int, list(s))) return sum(array) sum = 0 for i in range(n+1): c = digitSum(i) if a <= c && c <= b: sum += i print(sum)
s786171272
p03478
u805460429
1514168747
Python
Python (3.4.3)
py
Runtime Error
18
2940
151
n,a,b=input().split() nn=[0]*4 x=0 for i in range(1,n+1,1,): nn=len(i) y=nn[0]+nn[1]+nn[2]+nn[3] if (y>=a)and(y<=b): x=x+y print(x)
s998212169
p03478
u805460429
1514168466
Python
Python (3.4.3)
py
Runtime Error
17
2940
152
n,a,b=input().split() nn=[0]*4 x=0 for i in range(1,n+1,1): nn=len(i) y=nn[0]+nn[1]+nn[2]+nn[3]] if (y>=a)and(y<=b): x=x+y print(x)
s604202393
p03478
u830842621
1514161028
Python
Python (3.4.3)
py
Runtime Error
17
2940
182
n,a,b = map(int, input().split()) def f(x): ret = 0 while(x > 0): ret += x % 10 x //= 10 nums = filter(lambda x: f(x) >= a && f(x) <= b, range(1, n + 1)) print(sum(nums))
s277752747
p03478
u756988562
1514089837
Python
Python (3.4.3)
py
Runtime Error
35
3064
766
import math N,A,B = map(int,input().split()) # ans = 0 #N = list(str(N)) #N_len = len(N) ans = 0 for i in range(1,int(N)+1): if (i < 10) and (A <= i and i<=B): ans += i elif 10<=i and i <100: list_i = list(str(i)) if (A <= int(list_i[0])+int(list_i[1]) and int(list_i[0])+int(list_i[1]...
s827242577
p03478
u046136258
1514081704
Python
Python (3.4.3)
py
Runtime Error
17
2940
523
#include <iostream> using namespace std; int wa(int a) { int z1=a/1000; int z2=a/100-z1*10; int z3=a/10 -z1*100 - z2*10; int z4=a-z1*1000-z2*100-z3*10; return z1+z2+z3+z4; } int main(void){ // Your code here! int n,a,b;cin>>n>>a>>b; int sum=0; for(int i=0;i<=n;i++) ...
s936587690
p03478
u882831132
1514081529
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
n,a,b=[int(x) for x in input().split()] ans=0 for i in rabge(n): t=0 while i: t+=i%10 i/=10 if a<=t and t<=b:ans+=t print(ans)
s862336992
p03479
u285443936
1600946399
Python
Python (3.8.2)
py
Runtime Error
27
9152
74
import math X,Y = map(int,input().split()) print(int(math.floor(Y/X,2)+1))
s050979049
p03479
u976225138
1597805345
Python
Python (3.8.2)
py
Runtime Error
32
10208
163
from math import log2 from decimal import Decimal x, y = map(int, input().split()) dx = Decimal(log2(x)) dy = Decimal(log2(y)) print(1 + int(log2(dy) - log2(dx)))
s526702710
p03479
u971811058
1594511347
Python
Python (3.8.2)
py
Runtime Error
20
8956
515
#include<bits/stdc++.h> // Begin Header {{{ using namespace std; using ll = long long; using P = pair<ll, ll>; using Graph = vector<vector<ll>>; #define rep(i,n) for(ll i=0; i<n; i++) #define loop(i, j, n) for(ll i=j; i<n; i++) #define all(x) (x).begin(), (x).end() constexpr int INF = 0x3f3f3f3f; const long long mod=1...
s458436015
p03479
u840485969
1592668589
Python
Python (3.8.2)
py
Runtime Error
22
9092
98
import math x = input() y = input() cnt = 0 while x <= y: x *= 2 cnt += 1 print (cnt)
s695847935
p03479
u840485969
1592668188
Python
Python (3.8.2)
py
Runtime Error
24
9092
84
x = input() y = input() cnt = 0 while x <= y: x *= 2 cnt += 1 print (cnt)
s599665701
p03479
u840485969
1592668113
Python
Python (3.8.2)
py
Runtime Error
26
9020
85
x = input() y = input() cnt = 0 while x <= y: x *= 2 cnt += 1 print (cnt)
s412678117
p03479
u519923151
1591840986
Python
Python (3.4.3)
py
Runtime Error
17
3064
283
n,a,b = map(int, input().split()) res = 0 for i in range(1,n+1): x5 = i//10000 x4 = (i-x5*10000)//1000 x3 = (i-x5*10000-x4*1000)//100 x2 = (i-x5*10000-x4*1000-x3*100)//10 x1 = i % 10 xx = x5+x4+x3+x2+x1 if b >= xx >= a: res += i print(res)
s488184877
p03479
u572012241
1590341452
Python
Python (3.4.3)
py
Runtime Error
18
3060
476
import heapq from sys import stdin input = stdin.readline #入力 # s = input() # n = int(input()) x,y = map(int, input().split()) # a = list(map(int,input().split())) # w = [int(input()) for i in range(n)] # ab=[] # for i in range(m): # a,b = map(int, input().split()) # ab.append((a,b)) print(x) def main(...
s090841692
p03479
u366185462
1589640350
Python
Python (3.4.3)
py
Runtime Error
17
2940
122
x, y = map(int, input().split()) a = x i = 0 al.append(a) while (a < y): a *= 2 i += 1 if a >= y: break print(i)
s126933403
p03479
u193927973
1588193052
Python
Python (3.4.3)
py
Runtime Error
19
2940
56
x, y = map(int, input().split()) print(1+int(log2(y//x))
s198939992
p03479
u652656291
1587500712
Python
Python (3.4.3)
py
Runtime Error
17
2940
119
a,b = map(int,input().split()) ans = 0 for i in range(): if a*(i+1) <= b: ans += 1 else: quit() print(ans)
s751048530
p03479
u652656291
1587500442
Python
Python (3.4.3)
py
Runtime Error
17
2940
114
a,b = map(int,input().split()) ans = -1 for i in range(): if a*i <= b: ans += 1 else: break print(ans)
s474134068
p03479
u652656291
1587500397
Python
Python (3.4.3)
py
Runtime Error
17
2940
113
a,b = map(int,input().split()) ans = 0 for i in range(): if a*i <= b: ans += 1 else: break print(ans)
s002335576
p03479
u392220578
1586832756
Python
PyPy3 (2.4.0)
py
Runtime Error
177
38512
105
import math x, y = [int(x) for x in input().split()] print(1 + math.floor(math.log2(y) - math.log2(x)))
s901335969
p03479
u060736237
1586289220
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
x, y = map(int, input().split()) count = 1 while x <= y: x *= 2 count += 1 print(count-1
s958080489
p03479
u151005508
1586193411
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38384
83
X, Y = map(int, input().split()) import math print(1 + math.floor(math.log2(Y/X)))
s089098792
p03479
u755180064
1585517746
Python
Python (3.4.3)
py
Runtime Error
17
3064
331
def main(): f, t = [int(v) for v in input().split(' ')] count = 0 d = 1 while True: tmp = f * 2 if tmp > t: break count += 1 print(tmp) d += 1 f = tmp print(count + 1) print(read_val.get_file_value("ans")) if __name__ == '__main__':...
s732021769
p03479
u891847179
1585281790
Python
Python (3.4.3)
py
Runtime Error
17
2940
177
X, Y = list(map(int, input().split())) from IPython import embed; embed(); exit(); cnt = 1 x = X while True: x = 2 * x if x > Y: break cnt += 1 print(cnt)
s867420622
p03479
u547167033
1584726586
Python
PyPy3 (2.4.0)
py
Runtime Error
168
38256
79
import math x,y=map(int,input().split()) print(math.ceil(math.log2((y-x)/x))+1)
s266652367
p03479
u371132735
1584630152
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
X,Y = map(int,unput().split()) ans = 0 while Y<=X: ans += 1 X*=2 print(ans)
s264143002
p03479
u247366051
1582946861
Python
Python (3.4.3)
py
Runtime Error
17
2940
72
import math x,y=input().split() print(int(math.log(2,int(y)//int(x))+1))
s213644240
p03479
u688375653
1581218275
Python
PyPy3 (2.4.0)
py
Runtime Error
185
38640
261
def input_int(): return map(int, input().split()) def one_int(): return int(input()) def one_str(): return input() def many_int(): return list(map(int, input().split())) X,Y=input_int() import math print(int(math.log2(Y) - math.log2(X))+1)
s626374307
p03479
u746849814
1580840290
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
nx = x*2 if nx > y: print(1) else: i = 2 while nx*2 <= y: nx = nx*2 i += 1 print(i)
s810372687
p03479
u836737505
1579832844
Python
Python (3.4.3)
py
Runtime Error
17
2940
79
x,y = map(int,input().split()) while x <= y: ans += 1 x *= 2 print(ans)
s726847946
p03479
u747220349
1578656812
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
112
x,y=map(int,input().split()) n=y//x m=len(bin(n))-bin(n).rfind("1")-1 print(sum(len(i*m) for i in range(i,m+1)))
s019512353
p03479
u642874916
1577514198
Python
PyPy3 (2.4.0)
py
Runtime Error
281
64492
995
from heapq import heappush, heappop, heapify from collections import deque, defaultdict, Counter import itertools from itertools import permutations, combinations import sys import bisect import string import math import time from fractions import gcd #import random def I(): return int(input()) def MI(): return ma...
s093782105
p03479
u405388560
1577396146
Python
Python (2.7.6)
py
Runtime Error
10
2568
382
asdkudf gaipweghiawghwi:ghigrieuuiotuweoriyuwerioghjerouwerioturweoptyuwertuopityrytrioetyikgjdklshgiosdhygiorggggGfdgfhsdfuigsdhjklasdfasdfjasdfj dsfsだfsdp@あkgf fsdj:ds sdふぃjdすおghsど;いghsdghふぉ;g  fg;sdfjogsghld;五gjkljjdfg  fづhgjkdflg;f fl;s
s323525765
p03479
u560988566
1577381120
Python
Python (3.4.3)
py
Runtime Error
18
3316
92
x,y = map(int, input()) a = x ans = 1 while a <= y: a = a * 2 ans += 1 print(ans)
s520090839
p03479
u905582793
1576786358
Python
Python (3.4.3)
py
Runtime Error
17
3064
58
import math x,y=int(input()) print(int(math.log2(y//x)+1))
s869106491
p03479
u814986259
1571361649
Python
Python (3.4.3)
py
Runtime Error
17
2940
160
X,Y=map(int,input().split()) d=Y-X k= Y // X if k <= 1: print(1) exit(0) count=0 while(1): if <= 2**count: break else: count+=1 print(count+1)
s665916266
p03479
u520276780
1568928491
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38640
85
import math x,y = map(int, input().split( )) ans = int(math.log2(y/x))+1 print(ans)
s488265669
p03479
u980322611
1568405029
Python
PyPy3 (2.4.0)
py
Runtime Error
184
38512
81
X,Y = map(int,input().split()) import math ans = int(math.log2(Y/X))+1 print(ans)
s406810285
p03479
u177411511
1567224214
Python
Python (3.4.3)
py
Runtime Error
37
5272
524
import sys from statistics import * from collections import * from operator import itemgetter from fractions import gcd stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline() def lcm(x, y): return (x * y) // gcd(x, y) x, y = na() if x * 2 > y:...
s374930274
p03479
u177411511
1567223674
Python
Python (3.4.3)
py
Runtime Error
36
5144
524
import sys from statistics import * from collections import * from operator import itemgetter from fractions import gcd stdin = sys.stdin ni = lambda: int(ns()) na = lambda: list(map(int, stdin.readline().split())) ns = lambda: stdin.readline() def lcm(x, y): return (x * y) // gcd(x, y) x, y = na() if x * 2 > y:...
s482100215
p03479
u283520984
1566807075
Python
Python (3.4.3)
py
Runtime Error
17
2940
88
X,Y= (int(i) for i in input().split()) x=X i=1 while(x<=Y): x=2*x i+==1 print(i)
s587934918
p03479
u852517668
1566530867
Python
PyPy3 (2.4.0)
py
Runtime Error
173
38256
111
X, Y = map(int, input().split()) count = 0 while True: count++ X = X * 2 if X > Y: break print(count)
s591562047
p03479
u779170803
1566333764
Python
Python (3.4.3)
py
Runtime Error
17
2940
96
import math X, Y = map(int,input().split()) answer = int(math.log2(int(Y/X)) + 1 print(answer)
s285058491
p03479
u484229314
1566067400
Python
PyPy3 (2.4.0)
py
Runtime Error
191
38384
112
import numpy as np import math X, Y = [int(_) for _ in input().split()] print(math.floor(math.log2(Y / X)) + 1)
s512727649
p03479
u677523557
1563933523
Python
Python (3.4.3)
py
Runtime Error
17
2940
115
X, Y = map(int, input().split()) for i in range(60): if X * 2**i > Y: ans = i break print(ans)
s514305299
p03479
u604398799
1561427562
Python
Python (3.4.3)
py
Runtime Error
17
2940
43
X, Y = list(map(int, input())) print(Y//X)
s163806981
p03479
u243699903
1561267468
Python
Python (3.4.3)
py
Runtime Error
150
12392
82
import numpy as np x,y=map(int,input().split()) print(math.floor(np.log2(y/x)+1))
s162783871
p03479
u179169725
1557552167
Python
Python (3.4.3)
py
Runtime Error
17
2940
503
# 問題 # https://atcoder.jp/contests/abc083/tasks/arc088_a # 方針 greedy # Xから初めて、2倍2倍していってYに達する手前で止めればよい # この倍々操作の回数が数列の長さだが、これは簡単に数値計算で求まる # つまり log_2(X/Y) を整数に丸め込んだやつ # log2の丸め込み誤差に注意 from math import log2 X, Y = list(map(int, input().split())) # print(int(log2(Y / X)+1)) #いや、あってるが… print(len(bin(Y // X)-2))
s844158537
p03479
u929585607
1556315065
Python
Python (3.4.3)
py
Runtime Error
17
2940
86
x, y=int(input()), int(input()) cnt=0 while x <= y: cnt=cnt+1 x=x*2 print(cnt)
s779105423
p03479
u059436995
1556022209
Python
Python (3.4.3)
py
Runtime Error
17
2940
76
import math x, y =map(int, input().split()) print(int(math.log2(y / x) + 1 )
s876127330
p03479
u903959844
1555532452
Python
Python (3.4.3)
py
Runtime Error
18
3060
265
A,B = list(map(int,input().split())) S = input() for i in range(A): if S[i] == "-": print("No") exit() if S[A] != "-": print("No") exit() for i in range(A+1,A+1+B): if S[i] == "-": print("No") exit() print("Yes")
s378393333
p03479
u091051505
1554081851
Python
Python (3.4.3)
py
Runtime Error
18
2940
73
x, y = map(int, input().split()) print(math.floor(math.log2(y // x)) + 1)
s609302986
p03479
u046187684
1553805219
Python
PyPy3 (2.4.0)
py
Runtime Error
176
38256
186
from math import floor, log2 def solve(string): x, y = map(int, string.split()) return str(floor(log2(y) - log2(x)) + 1) if __name__ == '__main__': print(solve(input()))
s031956482
p03479
u543954314
1551970140
Python
Python (3.4.3)
py
Runtime Error
18
2940
72
import math a b = map(int, input().split()) print(1+int(math.log2(b/a)))
s621101867
p03479
u729133443
1550882325
Python
Python (3.4.3)
py
Runtime Error
17
2940
52
print(len(eval('//'.join(input().split()[::-1])))-2)
s735109645
p03479
u948986080
1546983945
Python
PyPy3 (2.4.0)
py
Runtime Error
179
38256
91
x,y=map(int,inout().split()) len=0 flag=False while flag: if x*2<y: len+=1 print(len)
s735895039
p03479
u599547273
1542478956
Python
Python (3.4.3)
py
Runtime Error
17
2940
70
x, y = map(int, input().split(" ")) print(int(math.log(y/x, 2)) + 1)
s461695440
p03479
u073775598
1539526013
Python
Python (3.4.3)
py
Runtime Error
17
3060
155
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y==576460752303423487: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s541841241
p03479
u073775598
1539525969
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y<=576460752303423488 and Y>=576460752303423487: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)
s330135753
p03479
u073775598
1539525943
Python
Python (3.4.3)
py
Runtime Error
17
2940
181
X, Y=map(int,input().split()) num_2=Y/X count=1 if X==1 and Y<=576460752303423488 and Y>=576460752303423480: print(0/0) while num_2>=2: num_2=num_2/2 count+=1 print(count)