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
s579064768
p03477
u873756840
1587869502
Python
PyPy3 (2.4.0)
py
Runtime Error
175
38384
144
n, a, b, = map(int,input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int,list(str)))) <= b ans += i print(ans)
s026883803
p03477
u419963262
1587799982
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
A,B,C,D=map(int,input()) e=A+B-C-D print("Balanced")if e==0 else print(["Left",0,"Right"][e/abs(e)])
s168237804
p03477
u419963262
1587799946
Python
Python (3.4.3)
py
Runtime Error
17
3064
98
A,B,C,D=map(int,input()) e=A+B-C-D print("Balanced")if e==0 else print(["Left","Right"][e/abs(e)])
s474279191
p03477
u549161102
1587746904
Python
Python (3.4.3)
py
Runtime Error
17
2940
256
n,a,b = map(int, input().split()) sum = 0 for i in range(10): for j in range(10): for k in range(10): for l in range(10): if 1000*i + 100*j + 10*k + l <= n and a<i+j+k+l and i+j+k+l<b : sum += 1000*i + 100*j + 10*k + l print(sum)
s032257179
p03477
u549161102
1587746557
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
n,a,b = map(int, input().split()) sum = 0 for i in range(10): for j in range(10): num = 10*i+j if num <= n and a<i+j and i+j<b : sum += num print(sum)
s403816516
p03477
u459150945
1587611216
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
a, b, c, d = map(int, input().split()) if a+b > c+d: print('Left') elif a+b == c+d: print('Balanced') else: print('R
s052513345
p03477
u332253305
1587440519
Python
Python (3.4.3)
py
Runtime Error
17
2940
130
a,b,c,d=list(map(int,input().split())) x=a+b y=c+d if x>y: print("Left") elif x<y: print("Right") else: print("Balanced")
s424327718
p03477
u332253305
1587440464
Python
Python (3.4.3)
py
Runtime Error
18
2940
123
a,b,c,d=map(int,input().split()) x=a+b y=c+d if x>y: print("Left") elif x<y: print("Right") else: print("Balanced")
s349257695
p03477
u689780189
1587054419
Python
Python (3.4.3)
py
Runtime Error
17
3060
209
N, A, B = map(int, input().split()) All = 0 for i in range(1, N + 1): total = 0 j = i while j != 0: total += j % 10 j = j // 10 if A <= total <= B: All += i print(All)
s477855090
p03477
u799428010
1586824761
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
A= input() B= input() C= input() D= input() L=A+B R=C+D if L>R: print('Left') elif L==R: print('Balanced') else : print('Right')
s986668148
p03477
u799428010
1586824559
Python
Python (3.4.3)
py
Runtime Error
17
2940
127
A,B,C,D= map(int, input().split()) L=A+B: R=C+D: if L>R: print('Left') elif L=R: print('Balanced') else : print('Right')
s412394507
p03477
u799428010
1586824459
Python
Python (3.4.3)
py
Runtime Error
17
2940
125
A,B,C,D= map(int, input().split()) L=A+B R=C+D if L>R: print('Left') elif L=R: print('Balanced') else : print('Right')
s768534504
p03477
u799428010
1586824381
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
A= int(input()) B = int(input()) C = int(input()) D= int(input()) L=A+B R=C+D if L>R: print('Left') elif L=R: print('Balanced') else : print('Right')
s056090313
p03477
u799428010
1586630837
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a, b, c ,d = map(int,input().split(' ')) L=a+b;R=c+d: if L>R: print('Left') elif L<R: print('Right') else: print('Balanced')
s537934496
p03477
u799428010
1586630735
Python
Python (3.4.3)
py
Runtime Error
18
2940
128
a, b, c ,d = map(int,input().split(' ')) L=a+b;R=c+d: if L>R: print('Left') elif L=R: print('Balance') else: print('Right')
s737071203
p03477
u799428010
1586630707
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a, b, c ,d = map(int,input().split(' ')) L=a+b;R=c+d: if L>R: print('Left') elif L=R: print('Balance') else: print('Right')
s171205972
p03477
u799428010
1586630649
Python
Python (3.4.3)
py
Runtime Error
17
2940
129
a, b, c ,d = map(int,input().split(' ')) L=a+b;R=c+d; if L>R; print('Left') elif L=R; print('Balance') else; print('Right')
s745885026
p03477
u149368256
1586400365
Python
Python (3.4.3)
py
Runtime Error
18
3060
215
n, a, b = map(int, input().split()) count = 0 for i in range(n): check = (i+1)//10000 + (i+1)//1000 + (i+1)//100 + (i+1)//10 + (i+1)%10 if check >= a: if check <= b: count += (i+1) print(count)
s953380712
p03477
u373047809
1586316453
Python
Python (3.4.3)
py
Runtime Error
17
2940
105
s=input().replace(" ","+") l,r=eval(s[:3]),eval(s[4:]) print("RLiegfhtt"[l>r::2] if l!=r else "Balanced")
s683680558
p03477
u263691873
1586290916
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
A, B, C, D = map(int, input().split()) L = A + B R = C + D if L > R: print("Left") elif L = R: print("Left") else: print("Left")
s107536603
p03477
u519721530
1586289440
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
L, R = map(int, input().split()) if L < R: print('Right') elif L == R: print('Balanced') else: print('Left')
s375571706
p03477
u745562158
1586285088
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
A, B, C, D = map(int, input().split()) print('Left' if (A + B) > C + D else 'Balanced' if (A + B) = (C + D) else 'Right')
s549195883
p03477
u745562158
1586285033
Python
Python (3.4.3)
py
Runtime Error
18
2940
115
A, B, C, D = map(int, input().split()) print('Left' if A + B > C + D else 'Balanced' if A + B = C + D else 'Right')
s201465469
p03477
u427984570
1586133752
Python
Python (3.4.3)
py
Runtime Error
17
2940
100
a,b,c,d = map(int,input().split()) print("Left" if a+b>c+d else "Right" if a+b<c+d else "Balanced ")
s899404585
p03477
u159335277
1586056362
Python
Python (3.4.3)
py
Runtime Error
17
2940
159
a, b, c, d = list(map(int, input().split())) A = a + b B = c + d if A == B: print('Balanced') else if A > B: print('Left') else if A < B: print('Right')
s513846277
p03477
u142211940
1585741739
Python
Python (3.4.3)
py
Runtime Error
17
2940
242
N, A, B = map(int, input().split()) count = 0 for i in range(1,N+1): if A <= dsum(i) <= B: count += i #各桁の合計を求める def dsum(n): s = str(n) array = list(map(int, s)) return sum(array) print(count)
s420711687
p03477
u065578867
1585621948
Python
Python (3.4.3)
py
Runtime Error
18
2940
187
n, a, b = map(int, input().split()) ans = 0 for i in range(n + 1): s = str(i) i_list = list(map(int, s)) if sum(i_list) >= a and sum(i_list) <= b: ans += i print(ans)
s044735850
p03477
u755180064
1585497841
Python
Python (3.4.3)
py
Runtime Error
17
2940
121
t = [int(v) for v in input().split(' ')] n = t[0] + t[1] n2 = t[2] + t[3] if n > n2: print(n) elif n < n2: print()n2
s525001349
p03477
u450147945
1585330743
Python
Python (3.4.3)
py
Runtime Error
17
3060
115
A, B, C, D = map(int, input()) if A+B>C+D: print('Left') elif A+B<C+D: print('Right') else: print('Balanced')
s185889569
p03477
u851706118
1585088866
Python
Python (3.4.3)
py
Runtime Error
18
3188
160
n, a, b = map(int, input().split()) total = 0 for i in range(n+1): wa = sum((map(int, str(i)))) if a <= wa and wa <= b: total += i print(total)
s069142746
p03477
u282860613
1584923835
Python
PyPy3 (2.4.0)
py
Runtime Error
189
38256
179
N, A, B = map(int, input().split()) Num = 0 for i in range(N+1): list = [int(a) for a in list(str(i))] if sum(list) >= A and sum(list) <= B: Num += 1 print(Num)
s877349656
p03477
u225020286
1584749965
Python
Python (3.4.3)
py
Runtime Error
17
3060
128
N,A,B=map(int,input().split()) total=0 for i in range(1,N+1): s=str(i) if A<=sum(list(map(int,s)))<=B: total+=i print(total)
s450885998
p03477
u972652761
1584675567
Python
Python (3.4.3)
py
Runtime Error
17
2940
83
X,Y = map(int,input().split()) ans = 0 while Y>=X: ans += 1 X*=2 print(ans)
s186325629
p03477
u972652761
1584675403
Python
Python (3.4.3)
py
Runtime Error
18
2940
168
X,Y = map(int,input().split()) A = [] for i in range(1,Y - X): if X * 2 **(i - 1) >= Y: break else: A.append(X * (2 ** (i - 1))) print(len(A))
s548002671
p03477
u945157177
1584667099
Python
Python (3.4.3)
py
Runtime Error
17
3064
230
N,a,b = list(int(x) for x in input().split()) ans = 0 for i in range(N+1): m = int(i/1000) n = int((i%1000)/100) j = int((i%100)/10) k = i%10 sum = m + n + j + k if sum >= a and sum <= b: ans = ans + i print(ans)
s438284464
p03477
u945157177
1584667055
Python
Python (3.4.3)
py
Runtime Error
17
3064
230
N,a,b = list(int(x) for x in input().split()) ans = 0 for i in range(N+1): m = int(i/1000) n = int((i%1000)/100) j = int((i%100)/10) k = i%10 sum = m + n + j + k if sum >= a and sum <= b: ans = ans + i print(ans)
s135913599
p03477
u617103038
1584062892
Python
Python (3.4.3)
py
Runtime Error
19
2940
217
n, a, b = map(int, input().split()) count = 0 for i in range(1, n + 1): array = list(str(i)) s = 0 for j in array: s = int(j) + s if s >= a and s <= b: count = count + i print(count)
s546240947
p03477
u069547849
1583799797
Python
Python (3.4.3)
py
Runtime Error
20
3316
169
a, b, x = map(int, input().split()) sum_number = [] for i in range(x+1): if a <= sum(map(int, str(i))) <= b: sum_number += [i] priny(sum(sum_number))
s437890457
p03477
u446371873
1583700814
Python
Python (3.4.3)
py
Runtime Error
17
3060
292
def somesum(n): sum = 0 x = n while int(x / 10) > 0: sum += x % 10 x = int(x / 10) sum += x % 10 return sum n,a,b = map(int,input().split()) sum = 0 for val in range(1,n+1): if somesum(val) >= a and somesum(val) <= b: sum += val print(sum)
s832332100
p03477
u346677493
1583354071
Python
Python (2.7.6)
py
Runtime Error
10
2568
126
a,b,c,d=map(int,raw_input().split()) if a+b<c+d: print "Right" elif a+b>c+d: print "Left" elif a+b=c+d: print "Balanced"
s277960858
p03477
u599669731
1583127059
Python
Python (3.4.3)
py
Runtime Error
17
2940
135
n,a,b=mao(int,input().split()) ans=0 for i in range(n+1): if a <= sum(list(map(int,list(str(i))))) <=b: ans += i print(ans)
s931288835
p03477
u829796346
1583015454
Python
Python (3.4.3)
py
Runtime Error
17
3060
159
N,A,B = map(int, input().split()) ret = 0 for i in range(N+1): s = sum([int(c) for c in str(i)]) print(s,i) if A <= s and s <= B: ret += i print(ret)
s143049678
p03477
u829796346
1583015284
Python
Python (3.4.3)
py
Runtime Error
17
2940
145
N,A,B = map(int, input().split()) ret = 0 for i in range(N): s = sum([int(c) for c in str(i)]) if A <= s and s <= B: ret += i print(ret)
s917472599
p03477
u309018392
1582657892
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
N,A,B=map(int,input().split()) print(sum(i in i range(1,N+1) if A<=sum(map(int,str(i)))<=B))
s899263070
p03477
u309018392
1582657752
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
N,A,B=map(int,input().split()) print(sum(i in i range(1,N+1) if A<=sum(map(int,str(i))<=B))
s113175170
p03477
u390581401
1582293889
Python
Python (3.4.3)
py
Runtime Error
17
2940
138
A, B, C, D = map(int, input().split()) if (A+B < C+D): print("Right") elif (A+B > C+D): print("Left") else: print("Balanced") hibiki@
s675651320
p03477
u134712256
1581964632
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
a,b,c,d = map(int,input().split()) if a+b>c+d: print("Left") elif a+b=c+d: print("Balanced") else: print("Right")
s924909349
p03477
u045953894
1581827475
Python
Python (3.4.3)
py
Runtime Error
18
2940
140
N, A, B = map(int, input().split()) res = 0 for i in range(N+1): if A <= sum([int(s) for s in str(i)]) <= B: res += i print(res)
s896606724
p03477
u475598608
1581561017
Python
Python (3.4.3)
py
Runtime Error
17
3060
130
a,b,c,d=map(int,input().split) if (a+b)>(c+d): print('Left') elif (a+b)==(c+d): print('Balanced') else: print('Right')
s008013927
p03477
u086503932
1581396431
Python
Python (3.4.3)
py
Runtime Error
18
2940
121
l =map(int,input().split());a=sum(l[:2])-sum(l[3:]);print('Left') if a>0 else print('Right')if a<0 else print('Balanced')
s137571563
p03477
u825460912
1581023629
Python
Python (3.4.3)
py
Runtime Error
17
3060
299
# 関数を使った場合 N, A, B = map(int, input().split()) ans = 0 def FindSumOfDigits(x): count = 0 while x>0: count += x%10 x = x//10 return count for n in range(1, N+1): count = FindSumOfDigits(n) if A<= count <=B: ans += n print(ans)
s165686503
p03477
u825460912
1581023580
Python
Python (3.4.3)
py
Runtime Error
18
2940
306
# 関数を使った場合 N, A, B = map(int, input().split()) l = [] ans = 0 def FindSumOfDigits(x): count = 0 while x>0: count += x%10 x = x//10 return count for n in range(1, N+1): count = FindSumOfDigits(n) if A<= count <=B: ans += n print(ans)
s152539384
p03477
u368796742
1580788576
Python
Python (3.4.3)
py
Runtime Error
17
2940
101
a,b,c,d = map(int,input().split()) print("Left" if a+b > c+d elif a+b == c+d "Balanced" else "Right")
s938736358
p03477
u657208344
1580669644
Python
Python (3.4.3)
py
Runtime Error
17
2940
128
a,b,c,d=map(int,input().split()) l=a+b r=c+d if l < r: print("Right") else if l==r: print("Blanceed") else: print("Left")
s168604280
p03477
u657208344
1580669505
Python
Python (3.4.3)
py
Runtime Error
18
2940
94
a,b,c,d=map(int,input().spilit()) l=a+b r=c+d if l < r: print("Right") else: print("Left")
s494346422
p03477
u478888559
1580434642
Python
Python (3.4.3)
py
Runtime Error
17
2940
225
N, A, B = map(int, input().split()) sum = 0 for i in range(N): sum_t = 0 j = i + 1 n = j while n != 0: sum_t += n % 10 n //= 10 if sum_t >= A and sum_t <= B: sum += j print(sum)
s880861817
p03477
u851035514
1580349028
Python
Python (3.4.3)
py
Runtime Error
17
3060
190
N, A, B = map(int, input().split()) L = 0 for i in range(N+1): T = (i//10000) + ((i//1000)%10) + ((i//100)%10) + ((i//10)%10) + (i%10) if (A<=T) and (T<=B): L += i print(L)
s626128967
p03477
u628341073
1579487673
Python
Python (3.4.3)
py
Runtime Error
17
3060
142
n, a, b = map(int, input().split()) ans = 0 for i in range(n + 1): if a <= sum([int(c) for c in str(i)]) <= b: ans += i print(ans)
s634853897
p03477
u414458988
1579382603
Python
PyPy3 (2.4.0)
py
Runtime Error
161
38256
138
a,b,c,d = map(int, input().split()) res = a+b - (c+d) if res > 0: print('Left') elif res = 0: print('Balanced') else: print('Right')
s331905275
p03477
u287880059
1579297319
Python
Python (3.4.3)
py
Runtime Error
17
2940
94
a,b,c,d = map(int,input().split()) print("Left" a+b>c+d else "Balanced"a+b==c+d else "Right")
s440083561
p03477
u696240348
1579214656
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38384
164
n, a , b = map(int, input().split()) counter=0 for i in range(1, n+1): sum1 = sum(int(x) for x in str(i)) if(a<=sum1<=b): counter+=i print(counter)
s700604156
p03477
u755944418
1578949046
Python
Python (3.4.3)
py
Runtime Error
17
2940
139
A,B,C,D = map(int, input().split()) if (A+B) > (C+D): print('Left') elif (A+B) == (C+D: print('Balanced') else: print('Right')
s791236669
p03477
u962451849
1578781943
Python
Python (3.4.3)
py
Runtime Error
18
3188
144
n, a, b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s815856855
p03477
u968404618
1578426300
Python
Python (3.4.3)
py
Runtime Error
17
3060
215
n, a, b = map(int, input().split()) ans = 0 for i in range(1, n+1): sum = 0 x = i while x > 0: sum += x % 10 x = x//10 if sum >= a and sum <= b: ans += i print(ans)
s865803565
p03477
u291628833
1578189339
Python
PyPy3 (2.4.0)
py
Runtime Error
170
38256
131
a,b,c,d = map(int,input().split()) if a+b > c+d: print("Left") elif a+b == c+d: print("Balanced") else: print("Right")
s253113037
p03477
u145415974
1577405629
Python
Python (3.4.3)
py
Runtime Error
18
3188
286
def sm(x): a = 0 a += (x%10) a += (x//10)%10 a += ((x//10)//10)%10 a += (((x//10)//10)//10)%10 a += ((((x//10)//10)//10)//10)%10 return a N, A, B = map(int,input().split()) ans = 0 for i in range(1, N+1): if A <= sm(i) <= B: ans += i print(ans)
s075091911
p03477
u648679668
1577404883
Python
Python (2.7.6)
py
Runtime Error
12
2692
144
n, a, b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s531041597
p03477
u648679668
1577404861
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
n, a, b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s012292875
p03477
u648679668
1577325832
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
n, a, b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s944159312
p03477
u648679668
1577325742
Python
Python (3.4.3)
py
Runtime Error
17
2940
140
n, a, b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(map(int, list(str(i))))) <= b: ans += i print(ans)
s061010353
p03477
u506587641
1576906715
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
a, b, c, d = map(int, input().split()) if a+b > c+d: print('Left') elif a+b = c+d: print('Balanced') else: print('Right')
s467655714
p03477
u905582793
1576792594
Python
Python (3.4.3)
py
Runtime Error
17
2940
92
x,y=map(int,input().split()) for i in range(1,1000): x*=2 if x>y: print(i) break
s428842930
p03477
u905582793
1576785903
Python
Python (3.4.3)
py
Runtime Error
17
2940
117
a,b,c,d=map(int,input().split()) if a+b>c+d: print("Left") elif a+b=c+d: print("Balanced") else: print("Right")
s708538201
p03477
u877428733
1576771593
Python
Python (3.4.3)
py
Runtime Error
17
2940
153
A,B,C,D = map(int,input().split()) if A + B > C + D: print("Left") elif A + B < C + D: print("Right") elif A + B == C + D: print("Balanced"
s358069098
p03477
u955481356
1576632878
Python
Python (3.4.3)
py
Runtime Error
17
2940
219
n, a, b = map(int, input().split()) def findsum(n): sum = 0 while n>0: sum += n%10 n //= 10 return sum mylist = [i for i in range(n+1) if a<=findsum(i) and findsum(i)<=b] print(sum(mylist))
s608291737
p03477
u972892985
1576448281
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
a, b, c, d = map(int,input().split()) if a + b > c + d: prtin("Left") elif a + b < c + d: print("Right") else: print("Balanced")
s760693790
p03477
u972892985
1576448212
Python
Python (3.4.3)
py
Runtime Error
17
2940
137
a, b, c, d = map(int,input().split()) if a + b > c + d: prtin("Left") elif a + b < c + d: print("Right") else: print("Balanced")
s829364814
p03477
u972892985
1576448168
Python
Python (3.4.3)
py
Runtime Error
18
2940
136
a, b, c, d = map(int,input().split()) if a + b > c + d: prtin("Left") elif a + b < c + d: print("Right") else: print("Balansed")
s480008806
p03477
u638282348
1576311854
Python
Python (3.4.3)
py
Runtime Error
17
2940
177
line = input() A, B, C, D = map(int, input().split()) left, right = A + B, C + D print(( "Left" if left > right else "Balanced" if left == right else "Right" ))
s673574412
p03477
u638282348
1576311777
Python
Python (3.4.3)
py
Runtime Error
17
3064
193
line = input() left, right = eval(line[:3].replace(" ", "+")), eval(line[-4:].replace(" ", "+")) print(( "Left" if left > right else "Balanced" if left == right else "Right" ))
s608430706
p03477
u225845681
1575687909
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
a,b,c,d = int(input()) if a+b > c+d: ans = "Left" elif a+b < c+d: ans = "Right" else: ans = "Balanced" print(ans)
s428373459
p03477
u626468554
1575607234
Python
Python (3.4.3)
py
Runtime Error
17
2940
220
#n = int(input()) #n,k = map(int,input().split()) #x = list(map(int,input().split())) a,b,c,d =map(int,input().split()) m = a +b -c-d if m>0: print("Left") elif m =0: print("Balanced") else: print("Right")
s444370997
p03477
u417063616
1575485385
Python
Python (3.4.3)
py
Runtime Error
18
3060
225
n,a,b = [int(input()) for i in range(3)] t=0 for i in range(1,n+1): orign=i total = 0 for ii in range(len(str(i))): total += i%10 i=int(i/10) if total>=a and total<=b: t+=orign print(t)
s287148676
p03477
u751937299
1575265775
Python
Python (3.4.3)
py
Runtime Error
17
3064
390
N, A, B = (int(i) for i in input().split()) if (N < 1 or 10**4 < N): sys.exit(100) elif A > B: sys.exit(100) elif A < 1: sys.exit(100) elif 36 < B: sys.exit(100) ans = 0 for n in range(1, N+1): tmp_sum = 0 tmp_n = n while tmp_n != 0: tmp_sum += tmp_n % 10 tmp_n = tmp_n // ...
s285133398
p03477
u168205851
1574118076
Python
Python (3.4.3)
py
Runtime Error
17
2940
136
a, b, c, d = map(int, input().split()) if a+b > c+d: pirnt('Left') elif a+b == c+d : print('Balanced') else : print('Right')
s027772110
p03477
u168205851
1574117921
Python
Python (3.4.3)
py
Runtime Error
19
2940
146
a, b, c, d = map(int, input().split()) if a+b > c+d: pirnt('Left') elif a+b == c+d : print('Balanced') elif a+b < c+d : print('Right')
s094620309
p03477
u972658925
1573671858
Python
Python (3.4.3)
py
Runtime Error
18
3188
168
N,A,B = map(int, input().split()) num = 0 for i in range(1,N+1): lst = list(str(i)) s = sum(list(map(int,lst))) if A <= s <= B: num += i print(num)
s319743169
p03477
u754022296
1572961905
Python
PyPy3 (2.4.0)
py
Runtime Error
166
38256
127
a, b, c, d = map(int, input().split()) if a+b > c+d: print("Left") elif a+b < c+d: print("Right") wlaw: print("Balanced")
s503016130
p03477
u633548583
1572918571
Python
Python (3.4.3)
py
Runtime Error
17
2940
131
n,a,b=map(int,input().split()) ans=0 for i in range(n+1): if a<=sum(list(map(int,list(str(i)))))<=b: ans+=i print(ans)
s234060703
p03477
u215847928
1572496099
Python
Python (3.4.3)
py
Runtime Error
17
2940
182
abcd=int(input().split()) a=abcd[0] b=abcd[1] c=abcd[2] d=abcd[3] if a+b==c+d: print('Balanced') else: if a+b>c+d: print('Left') else: print('Right')
s600468707
p03477
u215847928
1572495999
Python
Python (3.4.3)
py
Runtime Error
17
2940
186
abcd=int(input().split()) a=abcd[0] b=abcd[1] c=abcd[2] d=abcd[3] if a+b==c+d: print('Balanced') else: if a+b>c+d: print('Left') else: print('Right')
s977626571
p03477
u215847928
1572495913
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
abcd=int(input().split()) a=abcd[0] b=abcd[1] c=abcd[2] d=abcd[3] if a+b=c+d: print('Balanced') else: if a+b>c+d: print('Left') else: print('Right')
s789919475
p03477
u215847928
1572495836
Python
Python (3.4.3)
py
Runtime Error
17
2940
185
abcd=int(input().split()) a=abcd[0] b=abcd[1] c=abcd[2] d=abcd[3] if a+b=c+d: print('balanced') else: if a+b>c+d: print('Left') else: print('Right')
s466782125
p03477
u804048521
1572209175
Python
Python (3.4.3)
py
Runtime Error
18
2940
155
A, B, C, D = (int(x) for x in input().split()) if A + B < C + D: print('Right') else: if A + B > C + D: print('Left') else: print('Balanced)
s526640140
p03477
u804048521
1572209133
Python
Python (3.4.3)
py
Runtime Error
17
2940
155
A, B, C, D = (int(x) for x in input().split()) if A + B > C + D: print('Right') else: if A + B < C + D: print('Left') else: print('Balanced)
s255910513
p03477
u789282627
1572026860
Python
Python (3.4.3)
py
Runtime Error
17
3060
1243
#input #A = int(input()) #B = int(input()) #C = int(input()) #X = int(input()) #A = list(map(int,input().split())) #b = int(input()) N,A,B = map(int,input().split()) #s = [0,0,0] #s[0] = int(input/100) #s[1] = int(input/10 - s[0]*10) #[2] = int(input%10) sum = 0 temp=0 tempy=0 #flag = 0 for i in range(1, N+1): #lo...
s093405864
p03477
u197968862
1571969231
Python
Python (3.4.3)
py
Runtime Error
17
2940
148
a,b,c,d = map(int,input().split()) L = a + b R = c + d if L > R: print('Left') elif L == R: print('balanced') else L < R: print('Right')
s148368935
p03477
u254871849
1571787385
Python
Python (3.4.3)
py
Runtime Error
17
3060
244
n, a, b = map(int, input().split()) total = 0 for i in range(1, n+1): total_digit = 0 j = i while j > 0: total_digit += j % 10 j //= 10 if j == 0: if total_digit >= a and total_digit <= b: total += i print(total)
s263071889
p03477
u448655578
1570418951
Python
Python (3.4.3)
py
Runtime Error
17
2940
188
weight = input().split(" ") if weight[0] + weight[1] > weight[2] + weight[3]: print("Left") elif weight[0] + weight[1] = weight[2] + weight[3]: print("Balanced") else: print("Right")
s059147885
p03477
u396890425
1570153691
Python
Python (3.4.3)
py
Runtime Error
17
2940
144
n,a,b=map(int, input().split()) some=[] for i in range(1,n+1): if a<=sum(map(int, list(str(i))))<=b: some.append(i) print(sum(some))