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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s986124099 | p03477 | u396890425 | 1569814803 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 95 | a,b,c,d=map(int, input().split())
print('Balanced' if a+b==c+d 'Left' if a+b>c+d else 'Right') |
s329180510 | p03477 | u396890425 | 1569814756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | a,b,c,d=map(int, input().split())
print('Balanced' if a+b==c+d 'Left' a+b>c+d else 'Right') |
s350366823 | p03477 | u970197315 | 1569210962 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | # ABC083 C - Multiple Gift
x,y = map(int,input().split())
ans = 0
while x <= y:
x *= 2
ans += 1
print(ans) |
s027022527 | p03477 | u385244248 | 1569202641 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 22 | print(48-int(input())) |
s250493956 | p03477 | u661980786 | 1569153747 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 126 | a,b,c,d = map(int,input())
l = a+b
r = c+d
if l>r:
print("Left")
elif l<r:
print("Right")
else:
print("Balanced")
|
s171472181 | p03477 | u961674365 | 1569045884 | 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') |
s047385683 | p03477 | u516638473 | 1568853053 | Python | PyPy3 (2.4.0) | py | Runtime Error | 177 | 38512 | 99 | n, a, b = map(int, input().split())
sum(i for i in range(n + 1) if a <= sum(map(int, str(i))) <= b) |
s831872201 | p03477 | u474925961 | 1568677408 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 195 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
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") |
s922970756 | p03477 | u474925961 | 1568677361 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
a,b,c,d=input().split()
if a+b<c+d:
print("Right")
elif: a+b>c+d:
print("Left")
else:
print("Balanced") |
s933070204 | p03477 | u474925961 | 1568677336 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
a,b,c,d=input().split()
if a+b<c+d:
print("Right")
elif: a+b>c+d:
print("Left")
else:
print("Balanced") |
s868444758 | p03477 | u704437220 | 1568656348 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 228 | import math
if __name__ == '__main__':
X, Y = map(int, input().split())
# print(int(math.log2(Y//X)+1))
print(len(bin(Y//X))-2)
# ans = 0
# while X <= Y:
# ans += 1
# X *= 2
# print(ans)
|
s978333800 | p03477 | u704437220 | 1568656275 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 194 | import math
if __name__ == '__main__':
X, Y = map(int, input().split())
# print(int(math.log2(Y//X)+1))
ans = 0
while X <= Y:
ans += 1
X *= 2
print(ans)
|
s469551178 | p03477 | u297801580 | 1568438296 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 136 | a,b,c,d = [int(x) for x in input()]
s = a+b
t = c+d
if s==t:
print("Balanced")
elif s>t:
print("Left")
else:
print("Right")
|
s115316864 | p03477 | u597455618 | 1568075126 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 198 | def main():
n, a, b = map(int, input().split())
cnt = 0
for i in range(1, n+1):
if a <= sum(map(int, list(str(i)))) <= b:
cnt += i
print(cnt)
if __name__ == '__main__':
main() |
s307839728 | p03477 | u981449436 | 1567891650 | Python | Python (3.4.3) | py | Runtime Error | 22 | 3060 | 159 | n,a,b = map(int,input().split())
z = 0
for i in range(n+1):
x = map(int,list(str(i)))
y = sum(x)
if y >= a and y <= b:
z += int(i)
print(z) |
s696308360 | p03477 | u437638594 | 1567788006 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 148 | A, B, C, D = map(int, input().aplit())
l = A + B
r = C + D
if l > r:
print("Left")
elif l == r:
print("Balanced")
elif l < r:
print("Right") |
s526711019 | p03477 | u336624604 | 1567459503 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 135 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
if a <= sum(map(int, str(i))) <= b:
ans += i
print(ans) |
s357057484 | p03477 | u336624604 | 1567459482 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
if a <= sum(map(int, str(i))) <= b:
ans += i
print(ans) |
s070777308 | p03477 | u336624604 | 1567459056 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
if a <= sum(map(int, str(i))) <= b:
ans += i
print(ans) |
s010403077 | p03477 | u317710033 | 1567449459 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | 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') |
s719914903 | p03477 | u325227960 | 1567126797 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | a, b, c, d = map(int,input().split())
A = ["Left", "Balanced", "Right"]
print(A[(c+d) // (a+b) - (a+b) // (c+d) + 1]) |
s456916071 | p03477 | u643714578 | 1566756532 | Python | PyPy3 (2.4.0) | py | Runtime Error | 165 | 38384 | 106 | a,b,c,d = map(int, input().split())
l=a+b
r=c+d
printT("Left" if l>r else "Balanced" if l==r else "Right") |
s126694024 | p03477 | u798316285 | 1566756378 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 98 | n,a,b=map(int,input().split())
print(sum([i for i in range(1,n+1) if a<=sum(map(int,str(i)))<=b])) |
s225151491 | p03477 | u265118937 | 1566509261 | 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("Right")
elif (A+B)==(C+D)
print("Balanced")
else:
print("Left") |
s597741880 | p03477 | u558242240 | 1566316021 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 150 | a,b,c,d = map(int, input().split())
if (a+b) > (c,d):
print('Left')
if (a+b) == (c,d):
print('Balanced')
if (a+b) < (c,d):
print('Right')
|
s824684575 | p03477 | u992627775 | 1566274663 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 135 | N,A,B=map(int, input().split())
ans=0
for i in range(1,N+1):
if A<=sum(list(map(int, list(str(i)))))<=B:
ans+=i
print(ans) |
s544391006 | p03477 | u992627775 | 1566274495 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 135 | N,A,B=map(int, input().split())
ans=0
for i in range(1,N+1):
if A<=sum(list(map(int, list(str(i)))))<=B:
ans+=i
print(ans) |
s418613626 | p03477 | u024768467 | 1566061609 | Python | Python (3.4.3) | py | Runtime Error | 25 | 3064 | 327 | n,a,b=map(int,input().split())
def find_sum_of_digits(n):
sum = 0
int(n)
while n > 0:
sum += n % 10
n //= 10
return sum
total = 0
for i in range(1, n+1):
sum_of_digits_tmp = find_sum_of_digits(i)
if a <= sum_of_digits_tmp and sum_of_digits_tmp <= b:
total += i
print... |
s935325073 | p03477 | u024768467 | 1566061514 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 353 | n,a,b=map(int,input().split())
def find_sum_of_digits(n):
sum = 0
int(n)
while n > 0:
sum += n % 10
n //= 10
return sum
total = 0
for i in range(1, n+1):
sum_of_digits_tmp = find_sum_of_digits(i)
print(sum_of_digits_tmp)
if a <= sum_of_digits_tmp and sum_of_digits_tmp <= b:... |
s031944705 | p03477 | u849622363 | 1565824892 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 324 | n,a,b = map(int, input().split())
counter = 0
for i in range(1,n+1):
thou = i // 1000
hund = (i - thou * 1000) // 100
ten = (i - thou * 1000 - hund * 100) // 10
one = i - thou * 1000 - hund * 100 - ten * 10
sum_all = thou + hund + ten + one
if sum_all >= a and sum_all <= b:
counter += i
print(coun... |
s051083906 | p03477 | u248670337 | 1565803482 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a,b,c,d=map(int,input(),split())
print("Left" if a+b>c+d else "Right" if a+b<c+d else "Balanced") |
s353710898 | p03477 | u256464928 | 1565750332 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 110 | A,B,C,D = map(int,input().split)
print("Left" if A + B > C + D else "Balanced" if A + B == C + D else "Right") |
s074093455 | p03477 | u925626880 | 1565573376 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | # -*- coding: utf-8 -*-
n, a, b = list(map(int, input().split()))
s = 0
print(sum(i for i in range(1,n+1) if a <= sum(map(int, str(i))) <= b))
|
s079092066 | p03477 | u925626880 | 1565573305 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | # -*- coding: utf-8 -*-
n, a, b = list(map(int, input().split()))
s = 0
print(sum(i for i in range(1,n+1)) if a <= sum(map(int, str(i))) <= b)
|
s270675115 | p03477 | u045408189 | 1565563871 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 126 | a,b,c,d=map(int,input().split())
if (a+b)>(c+d):
print('Left')
elif (a+b)==(c+d):
print('Balanced')
else:
pritn('Right') |
s492128347 | p03477 | u852517668 | 1564878416 | Python | PyPy3 (2.4.0) | py | Runtime Error | 191 | 38640 | 278 | def find_sum(n):
ret = 0
while(n > 0):
ret += int(n % 10)
n = int((n - n % 10) / 10)
return ret
N, A, B = map(int, input().split())
ret = 0
for i in range(N + 1):
#v = sum(map(int, list(str(i))))
v = find_sum(i)
if v >= A and v <= B:
ret += i
print(ret) |
s374663866 | p03477 | u852517668 | 1564878348 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38256 | 268 | def find_sum(n):
ret = 0
while(n > 0):
ret += n % 10
n = (n - n % 10) / 10
return ret
N, A, B = map(int, input().split())
ret = 0
for i in range(N + 1):
#v = sum(map(int, list(str(i))))
v = find_sum(i)
if v >= A and v <= B:
ret += i
print(ret) |
s066375133 | p03477 | u158778550 | 1564858825 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 299 | N, A, B = map(int, input().split())
sum = 0
for n in range(N+1):
N1 = int(n/10000)
N2 = int((n-10000*N1)/1000)
N3 = int((n-10000*N1-1000*N2)/100)
N4 = int((n-10000*N1-1000*N2-100*N3)/10)
N5 = n-10000*N1-1000*N2-100*N3-10*N4
if A <= N1+N2+N3+N4+N5 <= B:
sum = sum + n
print(sum) |
s085612970 | p03477 | u158778550 | 1564858777 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 298 | N, A, B = map(int, input().split())
sum = 0
for n in range(N+1):
N1 = int(n/10000)
N2 = int((n-10000*N1)/1000)
N3 = int((n-10000*N1-1000*N2)/100)
N4 = int((n-10000*N1-1000*N2-100*N3)/10)
N5 = n--10000*N1-1000*N2-100*N3-10*N4
if A <= N1+N2+N3+N4+N5 <= B:
sum = sum + n
print(sum) |
s748587467 | p03477 | u158778550 | 1564858720 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 296 | N, A, B = map(int, input().split())
sum = 0
for n in range(N+1):
N1 = int(n/10000)
N2 = int((n-10000*N1)/1000)
N3 = int((n-10000*N1-1000*N2)/100)
N4 = int((n-10000*N1-1000*N2-100*N3)/10)
N5 = n--10000*N1-1000*N2-100*N3-10*N4
if A <= N1+N2+N3+N4+N5 <= B:
sum = sum + n
print(N1) |
s347330494 | p03477 | u374765578 | 1564170558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 294 | def sumall(a):
n = 0
while a > 0:
n += a % 10
a = a // 10
return n
n, a, b = map(int, input().split())
c = [0 for i in range(n)]
for i in range(n):
c[i] = sumall(i+1)
d = 0
for i in range(n):
if a <= c[i] <= b:
d += i+1
print(d) |
s922304177 | p03477 | u374765578 | 1564170478 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 216 | def sumall(a):
n = 0
while a > 0:
n += a % 10
a = a // 10
return n
n, a, b = map(int, input().split())
c = [0 for i in range(n)]
for i in range(n):
c[i] = sumall(i+1)
d = 0 |
s166824665 | p03477 | u374765578 | 1564170431 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 292 | def sumall(a):
n = 0
while a > 0:
n += a % 10
a = a // 10
return n
n, a, b = map(int.input().split())
c = [0 for i in range(n)]
for i in range(n):
c[i] = sumall(i+1)
d = 0
for i in range(n):
if a <= c[i] <= b:
d += i+1
print(d)
|
s176371553 | p03477 | u237702300 | 1564114479 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | i1 = input().split(' ')
a=int(i1[0])+int(i1[1])
b=int(i1[2])+int(i1[3])
if a>b:
print("Left")
elif a=b:
print("Balanced")
else:
print("Right") |
s355180239 | p03477 | u962942039 | 1564110005 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | weight = list(map(int, input().split()))
if a+b > c+d:
print('Left')
elif a+b < c+d:
print('Right')
else:
print('Balanced') |
s138612553 | p03477 | u292735000 | 1562710293 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 245 | import math
n, a, b = map(int, input().split())
sum_all = 0
for i in range(1, n + 1):
sum_n = 0
m = i
while(m > 0):
sum_n += math.floor(m % 10)
m /= 10
if a <= sum_n <= b:
sum_all += i
print(sum_all) |
s307931876 | p03477 | u292735000 | 1562710197 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 250 | import math
n, a, b = map(int, input().split())
sum_all = 0
for i in range(1, n + 1):
sum_n = 0
m = i
while(m > 0):
sum_n += math.floor(m % 10)
m = int(m / 10)
if a <= sum_n <= b:
sum_all += i
print(sum_all) |
s059497570 | p03477 | u867005447 | 1562467802 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 81 | import math
x, y = map(int, input().split())
print(math.floor(math.log2(y//x))+1) |
s924218817 | p03477 | u288948615 | 1561762164 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | A, B, C, D = map(int, input())
if A + B > C + D:
print('Left')
elif A + B == C + D:
print('Balanced')
else:
print('Right') |
s404866494 | p03477 | u003501233 | 1561457589 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | A,B,C,D=map(int,input().split())
L=A+B
R=C+D
if L > R:
print("Left")
elif L = R:
print("Balanced")
elif L < R:
print("Right") |
s623823817 | p03477 | u304209389 | 1561248757 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 308 | N, A, B = map(int, input().split())
def find_sum_of_digits(n):
sum = 0
while n >0:
sum = sum + n%10
n = round(n/10)
return sum
total = 0
for number in range(1,N+1):
all_sum = find_sum_of_digits(number)
if A <= all_sum and all_sum <= B:
total = total + number
print(total)
|
s719800904 | p03477 | u268516119 | 1560949418 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 2235 | using System;
using System.Text;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using static System.Console;
using static System.Math;
namespace AtCoder
{
public class Program
{
public static void Main(string[] args)
{
new Program().Solve(new ConsoleI... |
s576575760 | p03477 | u933341648 | 1560945177 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a, b, c, d = map(int, input())
print('Left' if a+b>c+d else 'Balanced' if a+b==c+d else 'Right') |
s784668915 | p03477 | u379136995 | 1560627010 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 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") |
s042259376 | p03477 | u123745130 | 1560463652 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 183 | aa = list(map(int,input().split()))
bb = ["Left","Right","Balanced"]
a,b,c,d = [i for i in aa]
print(bb[0] if a + b > c +d)
print(bb[1] if a + b < c +d)
print(bb[2] if a + b == c +d) |
s846973692 | p03477 | u266171694 | 1560438490 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 149 | a, b, c, d = map(int, input().split())
res = (a + b) - (c + d)
if res == 0:
pritn("Balanced")
elif res > 0:
print("Left")
else:
print("Right") |
s468020371 | p03477 | u296150111 | 1559085171 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 126 | 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”) |
s294839445 | p03477 | u765815947 | 1558796979 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 132 | a, b, c, d = map(int, input())
l = a + b
r = c + d
if l > r:
print('Left')
elif l == r:
print('Balanced')
else:
print('Right') |
s951922192 | p03477 | u765815947 | 1558796941 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 131 | a, b, c, d = map(int input())
l = a + b
r = c + d
if l > r:
print('Left')
elif l == r:
print('Balanced')
else:
print('Right') |
s821712599 | p03477 | u266874640 | 1558415112 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | 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") |
s608614590 | p03477 | u292220197 | 1558183326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 190 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
digits = map(int, list(str(i)))
sums = sum(digits)
if a <= sums and sums <= b:
ans += i
print(ans) |
s932008599 | p03477 | u292220197 | 1558183294 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 192 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
digits = map(int, list(str(i)))
sums = sum(digits)
if a <= sums and sums <= b:
ans += i
print(ans) |
s230473494 | p03477 | u292220197 | 1558183217 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 162 | n, a, b = map(int,input().split())
res = 0
for i in range(1, n+1):
tmp = map(int, list(str(i)))
v = sum(tmp)
if v >= a and v <= b:
res += i
print(res) |
s805371496 | p03477 | u292220197 | 1558183065 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | n, a, b = map(int,input().split())
res = 0
for i in range(1, n+1):
v = sum(map(int, list(str(i))))
if v >= a and v <= b:
res += i
print(res) |
s869983449 | p03477 | u292220197 | 1558182919 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 | n, a, b = map(int,input().split())
res = 0
for i in range(1, n+1):
v = sum(map(int, list(str(i))))
if v >= a and v <= b:
res = res + i
else:
pass
print(res) |
s746253716 | p03477 | u292220197 | 1558182778 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 216 | n, a, b = map(int,input().split())
res = 0
def s(n):
n = str(n)
arr = map(int, list(n))
return sum(arr)
for i in range(1, n+1):
v = s(i)
if v >= a and v <= b:
res = res + i
else:
pass
print(res) |
s075600066 | p03477 | u292220197 | 1558182751 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 216 | n, a, b = map(int,input().split())
res = 0
def s(n):
n = str(n)
arr = map(int, list(n))
return sum(arr)
for i in range(1, n+1):
v = s(i)
if v >= a and v <= b:
res = res + i
else:
pass
print(res) |
s762120276 | p03477 | u796789068 | 1557886786 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 334 | N,A,B=map(int,input().split())
#n1=N//10
#n2=N%10
#n=n1+n2
ans=0
for i in range(N+1):
if i>=100:
i1=i//100
# i2=(i-100)//10
i3=i%10
j=i1+i3
if j>=A and j<=B:
ans+=j
else:
i1=i//10
i2=i%10
j=i1+i2
if j>=A and j<=B:
ans... |
s693227953 | p03477 | u796789068 | 1557886343 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 328 | N,A,B=map(int,input().split())
#n1=N//10
#n2=N%10
#n=n1+n2
n=0
for i in range(N+1):
if i>=100:
i1=i//100
i2=(i-100)//10
i3=i%10
j=i1+i2+i3
if j>=A and j<=B:
n+=1
else:
i1=i//10
i2=i%10
j=i1+i2
if j>=A and j<=B:
n+=1
... |
s731463719 | p03477 | u796789068 | 1557886093 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 326 | N,A,B=map(int,input().split())
#n1=N//10
#n2=N%10
#n=n1+n2
n=0
for i in range(N+1):
if N >=100:
i1=i//100
i2=(i-100)//10
i3=i%10
j=i1+i2+i3
if j>=A and j<=B:
n+=1
else:
i1=i//10
i2=i%10
j=i1+i2
if j>=A and j<=B:
n+=1
pr... |
s052029634 | p03477 | u796789068 | 1557885659 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3188 | 155 | N,A,B=map(int,input().split())
#n1=N//10
#n2=N%10
#n=n1+n2
n=0
for i in range(N+1):
i1=i//10
i2=i%10
j=i1+i2
if j>=A and j<=B:
n+=0 |
s337010620 | p03477 | u037221289 | 1557860816 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | A,B,C,D = map(int,input().split(' '))
A + B = X
C + D = Y
if X == Y:
print('Balanced')
elif X > Y:
print('Left')
else:
print('Right') |
s173716755 | p03477 | u643912307 | 1557507097 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 333 | #1以上N以下の整数のうち、10進法で各桁の和がA以上B以下であるものについて総和
n=int(input())
a=int(input())
b=int(input())
def s(x):
return x//10000 + x%10000//1000 + x%1000//100 + x%100//10 + x%10
sum=0
for i in range(n+1):
if a<=int(s(i))<=b:
sum+=i
print(sum) |
s079099292 | p03477 | u792670114 | 1557173846 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 388 | N, A, B = [int(s) for s in input().split()]
r = 0;
def sumdig(n):
r = 0;
d = n % 10;
r += d;
n = (n - d) / 10;
d = n % 10;
r += d;
n = (n - d) / 10;
d = n % 10;
r += d;
n = (n - d) / 10;
d = n % 10;
r += d;
n = (n - d) / 10;
return r;
for n in range(1, N + 1):
... |
s417650699 | p03477 | u450883456 | 1557002144 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | 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')
|
s019327887 | p03477 | u450883456 | 1557001881 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | 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')
|
s823548810 | p03477 | u096983897 | 1556971369 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 244 | n, a, b = map(int, input().split())
res = 0
for i in range(1,n+1):
sum = 0
j=0
while True:
num = i/(10**j)%10
if num != 0:
sum += num
j+=1
else:
break
if a<=sum and sum<=b:
res += sum;
print(res)
|
s138792903 | p03477 | u957872856 | 1556742931 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 112 | a, b, c, d = map(int, input().split())
l = a+b
r = c+d
print("Left" if l > r "Right" elif l < r else "Balanced") |
s681860676 | p03477 | u845937249 | 1556713593 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 437 |
#import sys
#sys.setrecursionlimit(10000000)
def findSumOfDigits(n):
sum = 0
while n > 0.1:
sum = sum + (n % 10)
#print(n % 10)
n = n - (n % 10)
n = n / 10
return sum
# 整数の入力
n = input()
n = int(n)
a = input()
a = int(a)
b = input()
b = int(b)
ans = 0
for i in range(1,... |
s291265196 | p03477 | u845937249 | 1556713501 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 394 | def findSumOfDigits(n):
sum = 0
while n > 0.1:
sum = sum + (n % 10)
#print(n % 10)
n = n - (n % 10)
n = n / 10
return sum
# 整数の入力
n = input()
n = int(n)
a = input()
a = int(a)
b = input()
b = int(b)
ans = 0
for i in range(1,n+1):
#print(i)
test = findSumOfDigits(... |
s347440543 | p03477 | u845937249 | 1556679439 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 440 |
import sys
sys.setrecursionlimit(10000000)
def findSumOfDigits(n):
sum = 0
while n > 0.1:
sum = sum + (n % 10)
#print(n % 10)
n = n - (n % 10)
n = n / 10
return sum
# 整数の入力
n = input()
n = int(n)
a = input()
a = int(a)
b = input()
b = int(b)
ans = 0
for i in range(1,n+... |
s221313114 | p03477 | u845937249 | 1556679398 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 441 |
#import sys
#sys.setrecursionlimit(1000000)
def findSumOfDigits(n):
sum = 0
while n > 0.1:
sum = sum + (n % 10)
#print(n % 10)
n = n - (n % 10)
n = n / 10
return sum
# 整数の入力
n = input()
n = int(n)
a = input()
a = int(a)
b = input()
b = int(b)
ans = 0
for i in range(1,n... |
s169520127 | p03477 | u845937249 | 1556679195 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 461 |
import sys
sys.setrecursionlimit(1000000)
def findSumOfDigits(n):
sum = 0
while n > 0.1:
sum = sum + (n % 10)
#print(n % 10)
n = n - (n % 10)
n = n / 10
return sum
# 整数の入力
n = input()
n = int(n)
a = input()
a = int(a)
b = input()
b = int(b)
ans = 0
for i in range(1,n+... |
s228229403 | p03477 | u325282913 | 1556596088 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 189 | a, b, c = map(int, input().split())
ans = 0
for i in range(1, a+1):
N = [int(x) for x in str(i)]
sum_N = sum(N)
if (b <= sum_N and sum_N <= c):
ans += sum_N
print(ans)
|
s839166882 | p03477 | u325282913 | 1556595645 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 181 | a, b, c = map(int, input().split())
ans = 0
for i in range(1, a+1):
N = [int(x) for x in str(i)]
sum = sum(N)
if (b <= sum and sum <= c):
ans += sum
print(ans)
|
s412365137 | p03477 | u325282913 | 1556595580 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 178 | a, b, c = map(int, input().split())
ans = 0
for i range(1, a+1):
N = [int(x) for x in str(i)]
sum = sum(N)
if (b <= sum and sum <= c):
ans += sum
print(ans)
|
s800755740 | p03477 | u325282913 | 1556595510 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | a, b, c = map(int, input().split())
ans = 0
for i range(1, a+1):
N = [int(x) for x in str(i)]
sum = sum(N)
if b <= sum and sum <= c:
ans += sum
print(ans)
|
s526864222 | p03477 | u545998622 | 1556586491 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | a,b,c,d=map(int,input())
if a+b<c+d:
print("left")
elif a+b=c+d:
print("balanced")
else:print("right") |
s795558467 | p03477 | u502389123 | 1556479115 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | A = map(int, input().split())
if A + B < C + D:
print('Left')
elif A + B == C + D:
print('Balanced')
else:
print('Right')
|
s921692056 | p03477 | u739721456 | 1556279332 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 123 | 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") |
s723197508 | p03477 | u171366497 | 1556154299 | 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('Balanced')
elif a+b>c+d:
print('Left')
else:
print('Right') |
s159242581 | p03477 | u059436995 | 1556021154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | n, a, b = map(int, input().split())
ans = 0
for i in range(1,n + 1):
if a <= sum([int(j) for j in str(i)]) <=b:
ans +=i
print(ans) |
s732616117 | p03477 | u960171798 | 1555946241 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 144 | A = [map(int, input().split())]
if A[0]+A[1] > A[2]+A[3]:
print("Left")
elif A[0]+A[1] < A[2]+A[3]:
print("Right")
else:
print("Balanced") |
s980544639 | p03477 | u969190727 | 1555820960 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a,b,c,d=map(int,input().split())
print("Left" if a+b>c+d else "Balanced" if a+b=c+d else "Right") |
s200766141 | p03477 | u331464808 | 1555510203 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | a,b,c,d=map(int,input().split())
if a+b>c+d:
print("Left")
if a+b=c+d:
print("Balanced")
else:
print("Right") |
s842658752 | p03477 | u419449306 | 1555381298 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 227 | N = int(input())
A = int(input())
B = int(input())
ans = 0
for x in range(N+1):
sum = 0
xx = x
while xx != 0:
sum += xx % 10
xx = xx / 10
if A <= sum and B >= sum:
ans += x
print(ans) |
s399817312 | p03477 | u980492406 | 1555303073 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 141 | 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') |
s233397764 | p03477 | u167681750 | 1554827392 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 184 | n, a, b = map(int, input().split())
counter = 0
for i in range(1, n):
str_i = str(i)
sum_i = sum(map(int, str_i))
if a <= sum_i <= b:
counter += i
print(counter)
|
s899959909 | p03477 | u167681750 | 1554827344 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 183 | n, a, b = map(int, input().split())
counter = 0
for i in range(1, n):
str_i = str(i)
sum_i = sum(map(int, str_i))
if a <= sum_i <= b:
counter += i
print(counter) |
s492143107 | p03477 | u655975843 | 1554432890 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | a, b, c, d = map(int, input())
if a + b == c + d:
print('Balanced')
elif a + b < c + d:
print('Right')
else:
print('Left')
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.