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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s913634073 | p03477 | u321354941 | 1519079934 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 213 | a = int(input())
b = int(input())
c = int(input())
d = int(input())
ab_count = a + b
cd_count = c + d
if ab_count > cd_count:
print('left')
else if ab_count == cd_count:
print('balanced')
elif:
print('light') |
s339358835 | p03477 | u096628314 | 1519076885 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 242 | # -*- coding: utf-8 -*-
# get a integer
a = int(raw_input())
list = a.split()
left = int(list[0])+int(list[1])
right = int(list[2])+int(list[3])
if left < right:
print("Right")
elif left > right:
print("Left")
else:
print("Balanced") |
s684196284 | p03477 | u019584841 | 1518633168 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | a,b,c,d=map(int,input().split())
if a+b > c+d:
print("Left")
elif a+b == c+d:
print("Balanced")
elif a+b < c+d:
print("Right")
|
s614701063 | p03477 | u019584841 | 1518633083 | 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")
|
s853322989 | p03477 | u604607346 | 1518205973 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 95 | x, y = map(int, input().split())
num = 0
while x < y:
num += 1
x *= 2
print(num) |
s667714874 | p03477 | u604607346 | 1518205851 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | x, y = map(int, input().split())
num = 1
while x < y:
x *= 2
num += 1
print(num) |
s900442445 | p03477 | u604607346 | 1518205380 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 183 | n, a, b = map(int, input().split())
tot = 0
for num in range(1, n+1):
sum_dgt = sum(map(int, str(num)))
if sum_dgt >= a and sum_dgt <= b:
tot += num
print(tot) |
s811376546 | p03477 | u957084285 | 1516806178 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 159 |
import math
X, Y = list(map(int, input().split()))
"""
print(math.ceil(math.log(Y/X+1, 2)))
"""
count = 0
while X <= Y:
X *= 2
count += 1
print(count) |
s699103570 | p03477 | u390958150 | 1516556843 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 158 | a,b,c,d = map[int,input().split()]
right = a + b
left = c + d
if right < left:
print('Right')
elif left < right:
print('Left')
else:
print('Balanced') |
s650593060 | p03477 | u390958150 | 1516556794 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 157 | a,b,c,d = map[int,input().split()]
right = a + b
left = c + d
if right > left:
print('Right')
elif left > right:
print('Left')
else:
print('Balanced') |
s847024864 | p03477 | u879082556 | 1516335683 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 145 | n,a,b=map(int,input().split())
ans=0
for i in range(n+1):
l=[int(x) for x in list(str(i))]
if a<=sum(l)<=b:
ans=ans+i
print(ans) |
s412878125 | p03477 | u994937485 | 1516335137 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38640 | 171 | #a = 314159265
#b = 358979323846264338
a, b = map(int, input().split())
count = 1
x = a
#print(x)
while x * 2 <= b:
x = x * 2
#print(x)
count += 1
print(count) |
s908002362 | p03477 | u994937485 | 1516335099 | Python | PyPy3 (2.4.0) | py | Runtime Error | 172 | 38640 | 170 | #a = 314159265
#b = 358979323846264338
a, b = map(int, input().split())
count = 1
x = a
print(x)
while x * 2 <= b:
x = x * 2
#print(x)
count += 1
print(count) |
s811374000 | p03477 | u994937485 | 1516335020 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38640 | 130 | a, b = map(int, input().split())
count = 1
x = a
print(x)
while x * 2 <= b:
x = x * 2
print(x)
count += 1
print(count) |
s865799024 | p03477 | u737455052 | 1516172573 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 141 | a, b, c, d = map(int, input().split())
l = a + b
r = c + d
if l == r:
print(Balanced)
elif l < r:
print(Right)
else:
print(Left)
|
s385975042 | p03477 | u861966572 | 1515968676 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 128 | A,B,C,D = input().split( )
L=A+B
R=C+D
if L>R :
print("Left")
elif L==R :
print("Balanced")
else :
print("Right") |
s050024108 | p03477 | u861966572 | 1515968649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | A,B,C,D = int,input().split( )
L=A+B
R=C+D
if L>R :
print("Left")
elif L==R :
print("Balanced")
else :
print("Right") |
s379998155 | p03477 | u861966572 | 1515968556 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 137 | A,B,C,D = map(int,input().split( ))
L=A+B
R=C+D
if L<R :
print("Right")
elif L==R :
print("Balanced")
else :
print("Left") |
s694631762 | p03477 | u861966572 | 1515959199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | A,B,C,D=input().split( )
L=int(A)+int(B)
R=int(C)+int(D)
If L<R:
print("right")
else if L==R:
print("Balanced")
else L>R:
print("Left") |
s916900738 | p03477 | u861966572 | 1515959130 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | A,B,C,D=input().split( )
L=A+B
R=C+D
If L<R:
print("right")
else if L==R:
print("Balanced")
else L>R:
print("Left") |
s815007439 | p03477 | u861966572 | 1515959083 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | A,B,C,D=input().split( )
L=A+B
R=C+D
If L<R:
print("right")
else if L==R:
print("Balanced")
else if L>R:
print("Left") |
s816756844 | p03477 | u861966572 | 1515958997 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | A,B,C,D=input().split( )
L=A+B
R=C+D
If L<R
print("right")
else if L==R
print("Balanced")
else if L>R
print("Left") |
s206000568 | p03477 | u861966572 | 1515958847 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | A,B,C,D=input().split( )
L=A+B
R=C+D
If(L<R)
print("right")
else if(L==R)
print("Balanced")
else if(L>R)
print("Left") |
s560860725 | p03477 | u861966572 | 1515958743 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 118 | A,B,C,D=input().split( )
If(A+B<C+D)
print("right")
else if(A+B==C+D)
print("Balanced")
else if(A+B>C+D)
print("Left") |
s285657008 | p03477 | u569906225 | 1515184937 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2568 | 148 | # A - Libra
# coding: utf-8
A, B, C, D = map(int, raw_input())
if A+B > C+D:
print "Left"
elif A+B < C+D:
print "Right"
else:
print "Balanced" |
s812524378 | p03477 | u140251125 | 1515175349 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 92 | import math
X, Y = map(int, input().split())
k = math.floor(math.log(Y/X, 2) + 1)
print(k)
|
s506321798 | p03477 | u326659610 | 1515089494 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 377 |
def sum_dig(num):
nsum = 0
while(num):
dig = num % 10
nsum = nsum + dig
num = num // 10
# print (dig,sum,num)
return nsum
lim, nmin, nmax = map(int, input().split(" "))
chk_sum = 0
for i in range(1,lim+1) :
chk = sum_dig(i)
# print(chk,type(chk))
if (chk >= nmin ... |
s216371532 | p03477 | u326659610 | 1515048284 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 369 |
def sum_dig(num):
sum = 0
while(num):
dig = num % 10
sum = sum + dig
num = num // 10
# print (dig,sum,num)
return sum
lim, min, max = map(int, input().split(" "))
chk_sum = 0
for i in range(1,lim+1) :
chk = sum_dig(i)
# print(chk,type(chk))
if (chk >= min and chk... |
s225705439 | p03477 | u326659610 | 1515048209 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 380 | import sys
def sum_dig(num):
sum = 0
while(num):
dig = num % 10
sum = sum + dig
num = num // 10
# print (dig,sum,num)
return sum
lim, min, max = map(int, input().split(" "))
chk_sum = 0
for i in range(1,lim+1) :
chk = sum_dig(i)
# print(chk,type(chk))
if (chk >= ... |
s699538365 | p03477 | u262408926 | 1514927082 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | a, b, c, d = list(map(int, input().split()))
l = a+b
r = c+d
if l > r: print('Left')
elif: l < r: print('Right')
else: print('Balanced') |
s044376031 | p03477 | u262408926 | 1514926968 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | a, b, c, d = list(map(int, input().split())
l = a+b
r = c+d
if l > r: print('Left')
elif: l < r: print('Right')
else: print('Balanced') |
s759267231 | p03477 | u467027051 | 1514832169 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 276 | # -*- coding: utf-8 -*-
import math
import sys
tmp = input().split(" ")
n,a,b = list(map(int, tmp))
ans = 0
for i in range(n+1):
tmp = i % 10 + i % 100 // 10 + i % 1000 // 100 + i % 10000 // 1000 + i // 10000
if (tmp >= a) & (tmp <= b):
ans += i
print(ans)
|
s583890671 | p03477 | u699252226 | 1514691209 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 164 | lis = list(map(int,input().split()))
if lis[0]+lis[1]>lis[2]+lis[3]:
print("Left")
else if lis[0]+lis[1]<lis[2]+lis[3]:
print("Right")
else:
print("Balanced") |
s514764418 | p03477 | u863684580 | 1514682080 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2580 | 165 | l = list(map(int,raw_input).split())
if(l[0]+l[1]) > (l[2]+l[3]):
print "Left"
elif (l[0] + l[1]) == (l[2] + l[3]):
print "Balanced"
else:
print "Right"
|
s790509854 | p03477 | u010437136 | 1514301307 | Python | PyPy3 (2.4.0) | py | Runtime Error | 193 | 39792 | 307 | import sys
a = sys.stdin.readline()
A = a.rstrip()
b = sys.stdin.readline()
B = b.rstrip()
c = sys.stdin.readline()
C = c.rstrip()
d = sys.stdin.readline()
D = d.rstrip()
L = int(A) + int(B)
R = int(C) + int(D)
if L > R:
print('Left')
elif L < R:
print('Right')
elif L == R:
print('Balanced') |
s339221334 | p03477 | u010437136 | 1514301212 | Python | PyPy3 (2.4.0) | py | Runtime Error | 176 | 38384 | 300 | import sys
a = sys.stdin.readline()
A = a.rstrip()
b = sys.stdin.readline()
B = b.rstrip()
c = sys.stdin.readline()
C = c.rstrip()
d = sys.stdin.readline()
D = d.rstrip()
L = int(A) + int(B)
R = int(C) + int(D)
if L > R:
print('Left')
elif L < R:
print('Right')
else:
print('Balanced') |
s063153251 | p03477 | u224050758 | 1514261662 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 235 | A, B, C, D = [int(x) for x in input().split()]
def main();
ans = A + B - C - D
if ans > 0:
print('Left')
elif ans < 0:
print('Right')
else:
print('Balanced')
if __name == '__main__':
main() |
s016382617 | p03477 | u805460429 | 1514168714 | 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) |
s934792578 | p03477 | u830842621 | 1514161184 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 196 | n,a,b = map(int, input().split())
def f(x):
ret = 0
while(x > 0):
ret += x % 10
x //= 10
return ret
nums = filter(lambda x: f(x) >= a and f(x) <= b, range(1, n + 1))
print(sum(nums)) |
s069149178 | p03477 | u846552659 | 1514153373 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 162 | # -*- coding:utf-8 -*-
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") |
s434633515 | p03477 | u705038083 | 1514088918 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 199 | s = input()
slist = s.split(" ")
left = int(slist[0]) + int(slist[1])
right = slist[2] + slist[3]
if left > right:
print("left")
elif left == right:
print("Balanced")
else:
print("right")
|
s244033079 | p03477 | u486686490 | 1514088881 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 139 | a,b,c,d = map(input().split(), int())
if a+b < c+d :
print("Left")
elif a+b > c+d:
print("Right")
else:
print("Balanced")
|
s830862446 | p03477 | u705038083 | 1514088363 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 207 | s = input()
slist = s.split(' ')
left = int(slist[0]) + int(slist[1])
right = int(slist[2]) + int(slist[3])
if left > right:
print('left')
else if left == right:
print('Balanced')
else:
print('right') |
s180695839 | p03477 | u705038083 | 1514088279 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | s = input()
slist = s.split(' ')
left = slist[0] + slist[1]
right = slist[2] + slist[3]
if left > right:
print('left')
else if left == right:
print('Balanced')
else:
print('right') |
s625592433 | p03477 | u705038083 | 1514088246 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 186 | s = input()
slist = s.split(' ')
left = slist[0] + slist[1]
right = slist[2] + slist[3]
if left > right:
print('left')
else if left == right:
print('Balanced')
else:
print('right) |
s024172977 | p03477 | u705038083 | 1514088195 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 185 | s = input()
slist = s.split(' ')
left = slist[0] + slist[1]
right = slist[2] + slist[3]
if left > right:
print('left')
else if left == right:
print('Balanced')
else:
print('right |
s865451854 | p03477 | u705038083 | 1514087769 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 24 | str = args[1]
print(str) |
s752785105 | p03477 | u705038083 | 1514087702 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 28 | str = raw_inpur()
print(str) |
s709732249 | p03477 | u494209838 | 1514086981 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 447 | # -*- coding: utf-8 -*-
S = [int(x) for x in list(input())]
if len(S) == 1:
print(1)
elif len(S) == 2:
if S[0] == S[1]:
print(2)
else:
print(1)
else:
l = []
c = 1
for i in range(len(S) - 1):
if S[i] == S[i + 1]:
c += 1
else:
l.append(c)
... |
s512069241 | p03477 | u494209838 | 1514086787 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 440 | # -*- coding: utf-8 -*-
S = [int(x) for x in list(input())]
if len(S)==1:
print(1)
elif len(S)==2:
if S[0] == S[1]:
print(2)
else:
print(1)
else:
l = []
c = 1
for i in range(len(S)-1):
if S[i] == S[i+1]:
c += 1
else:
l.append(c)
... |
s315821418 | p03477 | u494209838 | 1514086739 | Python | Python (3.4.3) | py | Runtime Error | 345 | 21492 | 459 | # -*- coding: utf-8 -*-
import numpy as np
S = [int(x) for x in list(input())]
if len(S)==1:
print(1)
elif len(S)==2:
if S[0] == S[1]:
print(2)
else:
print(1)
else:
l = []
c = 1
for i in range(len(S)-1):
if S[i] == S[i+1]:
c += 1
else:
l... |
s915174399 | p03477 | u540307496 | 1514086723 | Python | Python (3.4.3) | py | Runtime Error | 640 | 21784 | 581 | rS = list(str(input()))
import numpy
S0 = numpy.array(rS).astype(numpy.int32)
S1 = numpy.array(rS).astype(numpy.int32)
lS = len(S0)
def hanten(slist):
ans = numpy.logical_xor(slist,numpy.ones(len(slist))).astype(int)
return ans
for i in range(2,lS+1)[::-1]:
for j in range(lS - i + 1):
if(S0[j] == 0... |
s246246237 | p03477 | u494209838 | 1514086709 | Python | Python (3.4.3) | py | Runtime Error | 577 | 21624 | 460 | # -*- coding: utf-8 -*-
import numpy as np
S = [int(x) for x in list(input())]
if len(S)==1:
print(1)
elif len(S)==2:
if S[0] == S[1]:
print(2)
else:
print(1)
else:
l = []
c = 1
for i in range(len(S)-1):
if S[i] == S[i+1]:
c += 1
else:
l... |
s085768778 | p03477 | u494209838 | 1514086675 | Python | Python (3.4.3) | py | Runtime Error | 1923 | 21748 | 469 | # -*- coding: utf-8 -*-
import numpy as np
S = [int(x) for x in list(input())]
if len(S)==1:
print(1)
elif len(S)==2:
if S[0] == S[1]:
print(2)
else:
print(1)
else:
l = []
c = 1
for i in range(len(S)-1):
if S[i] == S[i+1]:
c += 1
else:
l... |
s252357141 | p03477 | u497046426 | 1514085156 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | # スペース区切りの整数の入力
x, y= map(int, input().split())
lst = []
num = x
while num <= y:
lst.append(num)
num = 2*num
print(len(lst)) |
s835102317 | p03477 | u532087742 | 1514083821 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 138 | # -*- coding: utf-8 -*-
import math,sys
X,Y = map(int,input().split())
print(math.ceil((math.log(Y,10)-math.log(X,10))/math.log(2,10)))
|
s450776126 | p03477 | u274907892 | 1514083357 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 134 | a, b, c, d = map(int(), input().split())
if a+b > c+d:
print("left")
elif a+b < c+d:
print("right")
else:
print("balanced") |
s983993846 | p03477 | u684084063 | 1514082837 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 | # -*- coding: utf-8 -*-
A,B,C,D = map(int, input().split())
L = A + B
if L == R:
print("Balanced")
elif L <= R:
print("Right")
else :
print("Left") |
s078847075 | p03477 | u907511219 | 1514082754 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | x, y = map(int, input().split())
c = 2
z = 1
if(x > 1):
c = x;
while(c*2 <= y):
c *= 2;
z += 1;
print(z) |
s948611362 | p03477 | u854627522 | 1514082390 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 113 | import sys
x, y = map(int,sys.stdin.readline().split())
cnt = 0
while x <= y:
cnt += 1
x *= 2
print(cnt)
|
s049280708 | p03477 | u684084063 | 1514081991 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 181 | # -*- coding: utf-8 -*-
A = input()
B = input()
C = input()
D = input()
L = A + B
R = C + D
if L == R:
print("Balanced")
elif L <= R:
print("Right")
else :
print("Left") |
s807200742 | p03477 | u684084063 | 1514081781 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 234 | # -*- coding: utf-8 -*-
2
3 A = input()
4 B = input()
5 C = input()
6 D = input()
7 L = A + B
8 R = C + D
9 if L == R:
10 print("Balanced")
11 elif L <= R:
12 print("Right")
13 else :
14 print("Left") |
s636083082 | p03477 | u849401762 | 1514081758 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 164 | A,B,C,D = input().split(' ')
A,B,C,D = [int(A),int(B),int(C),int(D)]
L= A + B
R = C + D
if L>R:
print("Left")
elif L=R:
print("Balanced")
else:
print("Right")
|
s009911379 | p03477 | u562120243 | 1514081657 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 196 | libra = [int(i) for i in input().split]
left = libra[0] + libra[1]
right = libra[2] + libra[3]
if left > right:
print('Left')
elif left < right:
print('Right')
else:
print('Balanced') |
s783344556 | p03477 | u849401762 | 1514081612 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 164 | A,B,C,D = input().split(' ')
A,B,C,D = [int(A),int(B),int(C),int(D)]
L= A + B
R = C + D
if L>R:
print("Left")
elif L=R:
print("Balanced")
else:
print("Right")
|
s701697818 | p03477 | u849401762 | 1514081345 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | A = list(map(int, input().split(' ')))
L=A[0]+A[1]
R=A[2]+A[3]
if L<R: print("Right")
if L=R: print("Balanced")
if L>R: print("Left") |
s651551276 | p03477 | u818655004 | 1514081135 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 159 |
a, b, c, d = map(int,input().split())
lsum = a+b
rsum = c+d
if lsum<rsum:
print('Right')
elif lsum==rsum:
print('Balanced)
else:
print('Left')
|
s487309115 | p03477 | u780709476 | 1514081018 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 321 | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int A, B, C, D;
cin >> A >> B >> C >> D;
if(A + B < C + D)
cout << "Right" << endl;
else if(A + B == C + D)
cout << "Balanced" << endl;
else
cout << "Left" << endl;
return 0;
}... |
s725574174 | p03477 | u136090046 | 1514080910 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 136 | a,b,c,d = map(input().split())
if (a+b > c+d):
print("Left")
elif (a + b < c + d):
print("Right")
else:
print(("Balanced")) |
s525165097 | p03478 | u769538311 | 1601497916 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9172 | 339 | N = int(input())
A = int(input())
B = int(input())
ans_list = []
for i in range(0,N+1):
if i < 10:
if i >= A and i <=B:
ans_list.append(i)
else:
temp = list(map(int,str(i)))
temp = temp[0]+temp[1]
if temp >=A and temp<=B:
ans_list.append(i)
p... |
s778260314 | p03478 | u769538311 | 1601497733 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9124 | 339 | N = int(input())
A = int(input())
B = int(input())
ans_list = []
for i in range(0,N+1):
if i < 10:
if i >= A and i <=B:
ans_list.append(i)
else:
temp = list(map(int,str(i)))
temp = temp[0]+temp[1]
if temp >=A and temp<=B:
ans_list.append(i)
p... |
s906729585 | p03478 | u085186789 | 1601305022 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9064 | 186 | N, A, B = map(int,input().split())
ans = 0
for i in range(len(N)):
i = str(i)
count = 0
for j in i:
count += int(j)
if A <= count and B >= count:
ans += int(i)
print(ans) |
s766826001 | p03478 | u895169118 | 1601063829 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8980 | 181 | N,A,B=map(int, [input() for i in range(3)])
s=0
for i in range(1,N+1):
k=0
j=i
while(j>0):
k+=j%10
j=j//10
if (A<=k and k<=B):
s=s+i
print(s) |
s121573751 | p03478 | u895169118 | 1601063469 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9108 | 168 | A=int(input())
B=int(input())
s=0
for i in range(1,N+1):
k=0
j=i
while(j>0):
k+=j%10
j=j//10
if (A<=k and k<=B):
s=s+i
print(s)
|
s275127279 | p03478 | u895169118 | 1601061309 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8664 | 485 | #include <stdio.h>
int some_sum(int n){
int n1,n2,n3,n4,n5,temp;
n1=n%10;
n=n/10;
n2=n%10;
n=n/10;
n3=n%10;
n=n/10;
n4=n%10;
n=n/10;
n5=n%10;
temp=n1+n2+n3+n4+n5;
return temp;
}
int main(void){
int N,A,B;
scanf("%d",&N);
scanf("%d",&A);
scanf("%d",&B);
... |
s421390580 | p03478 | u577139181 | 1600723013 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8952 | 223 | N,A,B = list(map(int,input().split()))
cnt = 0
for n range(1,N):
val = 0
tmp = N
while tmp // N > 0:
val = tmp % 10
tmp = tmp // 10
if val >= A and val <= B:
cnt += 1
print(cnt) |
s298229475 | p03478 | u577139181 | 1600722972 | Python | Python (3.8.2) | py | Runtime Error | 28 | 8932 | 207 | from math import log10
cnt = 0
for n range(1,N):
val = 0
tmp = N
while tmp // N > 0:
val = tmp % 10
tmp = tmp // 10
if val >= A and val <= B:
cnt += 1
print(cnt) |
s385410299 | p03478 | u357289011 | 1600537246 | Python | PyPy3 (7.3.0) | py | Runtime Error | 111 | 74684 | 163 | ans = 0
for i in range(1, int(input()) + 1):
t = 0
z = i
while z > 0:
t = t + z % 10
z = z // 10
if t >= a and t <= b:
ans = ans + i
print(ans) |
s850186255 | p03478 | u963963908 | 1600039582 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9036 | 115 | N,A,B = map(int,input().split())
S = sum(i for i in range(1,N+1) if A <= sum(list(map(int,str(i))) <= B)
print(S)
|
s999041900 | p03478 | u666550725 | 1599775630 | Python | PyPy3 (7.3.0) | py | Runtime Error | 96 | 74704 | 143 | N, A, B = map(int, input().split())
ans = 0
for i in range(1, N+1):
x = sum(list(map(int, str(i))))
if A <= X <= B:
ans += i
print(ans) |
s614518660 | p03478 | u666550725 | 1599775568 | Python | PyPy3 (7.3.0) | py | Runtime Error | 102 | 74656 | 138 | N, A, B = map(int, input().split())
ans = 0
for i in range(1, N+1):
x = sum(list(map(str, i)))
if A <= X <= B:
ans += i
print(ans) |
s053265012 | p03478 | u099026234 | 1599200309 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9080 | 290 | [a,b,c] = [int(i) for i in input().split(" ")]
goukei = 0
for i in range(1,a+1):
kurainowa = 0
kisuu = [int(k) for k in list(str(i))]
for j in range(0,len(kissu)-1+1):
kurainowa = kurainowa + kissu[j]
if kurainowa < b+1 and a-1 <kurainowa :
goukei = goukei + i
print(goukei) |
s774254980 | p03478 | u099026234 | 1599200270 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9136 | 276 | [a,b,c] = [int(i) for i in input().split(" ")]
goukei = 0
for i in range(1,a+1):
kurainowa = 0
kisuu = [int(k) for k in list(str(i))]
for j in range(0,len(kissu)-1+1):
kurainowa = kurainowa + kissu[j]
if kurainowa < b+1 and a-1 <kurainowa :
goukei = goukei + i |
s678581114 | p03478 | u244836567 | 1599007363 | Python | Python (3.8.2) | py | Runtime Error | 20 | 8844 | 208 | a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
d=0
for i in range(1,a+1):
if b<=(i//10000+(i//1000-(i//10000)*10000))+(i//100-(i//1000)*1000))+(i//10-(i//100)*100)+(i//1-(i//10)*10)<=c:
d=d+i
print(d) |
s153233776 | p03478 | u546440137 | 1598555694 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9104 | 123 | n,a,b=map(int,input().split())
sum=0
for i in range(n+1):
if a<=sum(map(int,str(i)))<=b:
count+=i
print(sum) |
s271009009 | p03478 | u953379577 | 1598277300 | Python | Python (3.8.2) | py | Runtime Error | 19 | 8968 | 171 | n,a,b = map(int,input().split())
ans = 0
for i in range(1,n+1):
s = 0
for t in str(i):
s += int(t)
if a-1< s < b+1:
ans += str(i)
print(ans) |
s962315722 | p03478 | u310381103 | 1598075340 | Python | Python (3.8.2) | py | Runtime Error | 22 | 9084 | 132 | n,a,b=map(int,input().split())
ans=0
for i in range(1,n+1):
ii=list(i)
ii=sum(ii)
if ii in range(a,b+1):
ans+=i
print(ans) |
s183877619 | p03478 | u463893436 | 1597943234 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8876 | 140 | n,a,b = map(int, input().split())
ans = 0
for i in range(1,n+1):
if a <= sum([int(c) for c in str(i)]) => b:
ans += i
print(ans) |
s433474278 | p03478 | u953379577 | 1597856598 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9156 | 129 | n,a,b = map(int,input().split())
ans = 0
for i in range(1,n+1):
if a-1 < sum(list(str(i))) < b+1:
ans += i
print(ans) |
s720169626 | p03478 | u610042046 | 1597532153 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9176 | 143 | N, A, B = map(int, input().split())
sum = 0
for i in range(1, N+1):
if A <= sum(list(map(int, str(i)))) <= B:
sum += i
print(sum) |
s501563511 | p03478 | u610042046 | 1597531189 | Python | Python (3.8.2) | py | Runtime Error | 26 | 9084 | 149 | N,A,B = map(int,input().split())
sum = 0
for i in range(1,N+1):
s = sum(list(map(int, str(i))))
if A <= s <= B:
sum += i
print(sum) |
s960920971 | p03478 | u610042046 | 1597530242 | Python | Python (3.8.2) | py | Runtime Error | 27 | 9180 | 254 | N = int(input())
A = int(input())
B = int(input())
list1 = []
for i in range(N+1):
s = i//1000 + i//100-1000*(i//1000) + i//10-100*(i//100) + i-10*(i//10)
if A <= s <= B:
list1.append(i)
sum = 0
for j in list1:
sum += j
print(sum) |
s241906128 | p03478 | u610042046 | 1597530045 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9164 | 293 | N = int(input())
A = int(input())
B = int(input())
list1 = []
for i in range(N+1):
s = i//1000 + i//100-1000*(i//1000) + i//10-100*(i//100) + i-10*(i//10)
print("i =",i,"s =",s)
if A <= s <= B:
list1.append(i)
print(list1)
sum = 0
for j in list1:
sum += j
print(sum) |
s055608984 | p03478 | u345686149 | 1597422630 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9032 | 275 | def sum(n):
str_n = str(n)
ans = 0
for i in range(len(str_n)):
ans += int(str_n[i])
return ans
N,A,B = map(int, [input() for i in range(3)])
ans1 = 0
for i in range(N+1):
if A <= sum(i) <= B:
ans1 += i
else:
pass
print(ans1)
|
s504124396 | p03478 | u345686149 | 1597422565 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9080 | 275 | N,A,B = map(int, [input() for i in range(3)])
def sum(n):
str_n = str(n)
ans = 0
for i in range(len(str_n)):
ans += int(str_n[i])
return ans
ans1 = 0
for i in range(N+1):
if A <= sum(i) <= B:
ans1 += i
else:
pass
print(ans1)
|
s825995820 | p03478 | u345686149 | 1597422281 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9116 | 252 | def sum(n):
str_n = str(n)
ans = 0
for i in range(len(str_n)):
ans += int(str_n[i])
return ans
N,A,B = map(int, [input() for i in range(3)])
ans1 = 0
for i in range(N+1):
if A <= sum(i) <= B:
ans1 += i
print(ans1)
|
s251613530 | p03478 | u345686149 | 1597422159 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9048 | 252 | N,A,B = map(int, [input() for i in range(3)])
def sum(n):
str_n = str(n)
ans = 0
for i in range(len(str_n)):
ans += int(str_n[i])
return ans
ans1 = 0
for i in range(N+1):
if A <= sum(i) <= B:
ans1 += i
print(ans1)
|
s720183927 | p03478 | u345686149 | 1597421914 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9108 | 256 | N,A,B = map(int, [input() for i in range(3)])
def sum(n):
str_n = str(n)
ans = 0
for i in range(len(str_n)):
ans += int(str_n[i])
return ans
ans1 = 0
for i in range(N+1):
if A <= sum(i) <= B:
ans1 += i
print(ans1)
|
s204848476 | p03478 | u729679908 | 1597014263 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9012 | 408 | N,A,B = map(int,input().split())
for M in range(1,N+1,1)
n = str(M)
a=0
b=0
c=0
d=0
e=0
y=0
if N=10000:
e=n[0]
if 1000<=N<10000:
d=n[0]
c=n[1]
b=n[2]
a=n[3]
if 100<=N<1000:
c=n[0]
b=n[1]
a=n[2]
if 10<=N<100:
b=n[0]
a=n[1]
if N<10:
a=n[0]
x = int(d) +... |
s754712838 | p03478 | u840841119 | 1596837939 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9132 | 121 | N,A,B = map(int, input().split())
ans = 0
for n in range(1, N+1):
if A <= sum(n) <= B:
ans += n
print(ans) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.