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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s225216513 | p03478 | u064563749 | 1571747250 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 253 | n,a,b=map(int,input().split())
def sum_digit(k):
ans=0
for i in range(len(k)):
ans=ans+k[i]
return ans
sum=0
for j in range(n+1):
if a <= sum_digit(j) and sum_digit(j)<= b:
sum=sum+j
else:
sum += 0
print(sum) |
s065288977 | p03478 | u240096083 | 1571598081 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | ls = list(map(int,input().split()))
n = ls[0]
a = ls[1]
b = ls[2]
c = 0
for i in n:
s = sum(list(str(i)))
c ++ 1 if s >= a and s <= b
print(c) |
s767130773 | p03478 | u943057856 | 1571523102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | N , A , B = map(int , input().split())
ans = 0
for n in range(1,N+1):
sum = sum(list(map(int , str(n))))
if A<=sum<=B:
ans += n
print(ans) |
s851604197 | p03478 | u388372553 | 1570908044 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 208 | n,a,b = (int(x) for x input().split())
ans = 0
def k(N):
sum = 0
while N>0:
sum += N%10
N = N//10
return sum
for i in range(1,n+1):
if a<=k(i)<=b:
ans +=i
print(ans)
|
s784337368 | p03478 | u970082363 | 1570718157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | n,a,b = (int(x) for x in input().split())
ans = 0
def keta(n):
sum = 0
while n>0:
sum += n%10
n = n//10
return sum
for i in range(1,n):
if a<=keta(i)<=b:
ans +=keta(i)
print(ans)
|
s712674800 | p03478 | u970082363 | 1570718146 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 218 | n,a,b = (int(x) for x in input().split())
ans = 0
def keta(n):
sum = 0
while n>0:
sum += n%10
n = n//10
return sum
for i in range(1,n):
if a<=keta(i)<=b:
ans +=keta(i)
print(ans)
|
s502597309 | p03478 | u080108339 | 1570315908 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 383 | N, A, B = map(int, [input() for i in range(3)])
TTL = 0
d3, d2, d1 = 0, 0, 0
for i in range(N+1):
if i <=9:
if A <= i and i <= B:
TTL += i
elif 10 <= i and i <=99:
d2 = i // 10
d1 = i - d2 * 10
if A <= (d2+d1) and (d2+d1) <=B:
TTL += i
else:
d3 = 1
d2 = (i - 100) // 10
d1 = (i - 100 - d2 *10)
... |
s642141655 | p03478 | u113631524 | 1570210673 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 352 | list =[int(input()) for i in range(3)]
N ,A, B= list[0],list[1],list[2]
ans = 0
for i in range(1,N+1):
i1 = i%10
i10 = (i%100 -i1)/10
i100 = (i%1000 -i1 - 10*i10)/100
i1000 = (i%10000 -i1 - 10*i10-100*i100)/100
i10000 = (i -i1 -10*i10 -100*i100 - 1000*i1000)/10000
if A<=i1+i10+i100+i1000+i1000... |
s904000768 | p03478 | u396890425 | 1570150856 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 177 | n,a,b=map(int, input().split())
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))
|
s372012979 | p03478 | u687159441 | 1569625432 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 375 | N = int(input())
A, B = map(int, input().split())
result = 0
for num in range(1, N+1):
num_1000 = num // 1000
num_100 = (num - 1000*num_1000) // 100
num_10 = (num - 1000*num_1000 - 100*num_100) // 10
num_1 = num - 1000*num_1000 - 100*num_100 - 10*num_10
sum = num_1 + num_10 + num_100 + num_1000
... |
s910077055 | p03478 | u687159441 | 1569625360 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 375 | N = int(input())
A, B = map(int, input().split())
result = 0
for num in range(1, N+1):
num_1000 = num // 1000
num_100 = (num - 1000*num_1000) // 100
num_10 = (num - 1000*num_1000 - 100*num_100) // 10
num_1 = num - 1000*num_1000 - 100*num_100 - 10*num_10
sum = num_1 + num_10 + num_100 + num_1000
... |
s404310560 | p03478 | u315706001 | 1569554967 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 405 | N , A , B = map(int,input().split())
ans = 0
for X in range(N+1):
X1,X2,X3,X4,X5,X6,X7,X8 = 0
ans1 = 0
X1 = X // 10
X2 = X % 10
if X1 != 0 :
X3 = X1 // 10
X4 = X1 % 10
if X3 != 0:
X5 = X3 // 10
X6 = X4 % 10
if X5 != 0:
X7 = X5 // 10
X8 = X5 % 10
ans1 = X2... |
s343233473 | p03478 | u490623664 | 1569530505 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | n,a,b=(int(input().split()))
c=0
for i in range(n+1):
d=0
for j in str(i):
d+=int(j)
if a<=d<=b:
c+=1
print(c) |
s716139212 | p03478 | u490623664 | 1569530372 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 122 | n,a,b=int(input().split())
c=0
for i in range(n+1):
d=0
for j in str(i):
d+=int(j)
if a<=d<=b:
c+=1
print(c) |
s183498473 | p03478 | u315706001 | 1569462140 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 227 | A = int(input())
B = int(input())
C = int(input())
X = int(input())
Ans = 0
for a in range(A):
for b in range(B):
for c in range(C):
ans = 500 * a + 100 * b + 50 * c
if ans == X :
Ans +=1
print (Ans) |
s899960437 | p03478 | u343150957 | 1569295229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 199 | n, a, b = map(int, input().split())
count = 0
for i in range(n+1):
ans = i % 10
while (i // 10) != 0:
ans += (i // 10)
i = (i // 10)
if ans >= a and ans <= b:
count += 1
print(count)
|
s106720819 | p03478 | u982471399 | 1569195341 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 348 | N=int(input())
A=int(input())
B=int(input())
#N=a*1000+b*100+c*10+d*1
#N=a*(10**3)+b*(10**2)+c*(10**1)+d*(10**0)
ans=0
while N>0:
i=0
while N>(10**i):
i=i+1
d_sum=0
N_buff=N
while i>=0:
d=N//(10**i)
N=N-d*(10**i)
d_sum=d_sum+d
i=i-1
N=N_buff
if d_sum>=A and d_sum<=B:
ans=ans+d_... |
s630185001 | p03478 | u420522278 | 1568998158 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 146 | n,a,b = map(int, input())
out = 0
for i in range(0,n+1):
sum = sum([int(j) for j in str(j)])
if a <= sum and sum <= b:
out += i
print(i) |
s685838641 | p03478 | u077291787 | 1568990154 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3056 | 212 | # ABC083B - Some Sums
def main():
N, A, B = tuple(map(int, input().split()))
ans = sum(i for i in range(1, N + 1) if a <= sum(map(int, str(i))) <= b)
print(ans)
if __name__ == "__main__":
main() |
s160305648 | p03478 | u716530146 | 1568918749 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | #!/usr/bin/env python3
ans=0
n,a,b=map(int,input().split())
for i in range(1,n):
count=0
for j in str(i):
count+=j
if a<=count<=b:
ans+=1
print(ans) |
s529069188 | p03478 | u882370611 | 1568613252 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 199 | n, a, b = map(int, input().split())
def degitalsum(i):
s = str(i)
array = list(s)
return sum(array)
ans = 0
for i in range(1, n + 1):
if a <= degitalsum(i) <= b:
ans += i
print(ans) |
s087849434 | p03478 | u556589653 | 1568317838 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 468 | N,A,B = map(int,input().split())
ans = 0
for i in range(N):
s = str(i)
if 1<=i<=9:
if A<=i<=B:
ans += i
elif 10<=i<=99:
if A<=((int(s[0])+int(s[1])))<=B:
ans += i
elif 100<=i<=999:
if A<=((int(s[0])+int(s[1])+int(s[2])))<=B:
ans += i
elif 1000<=i<=9999:
if A<=((int(s[0])+int(... |
s480351893 | p03478 | u437638594 | 1567788199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 150 | N, A, B = map(int, input().split())
count = 0
for i in range(1, N+1):
tmp = sum(list(str(i)))
if A <= tmp <= B:
count += 1
print(count) |
s280733539 | p03478 | u563588763 | 1567740063 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 131 | m,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) |
s918274834 | p03478 | u223904637 | 1567713334 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 207 | n,a,b=map(int,input().split())
def keta(m):
an=0
while m>0:
an+=m%10
m=m//10
return an
ans=0
for i in range(1.n+1):
j=keta(i)
if j<=b and j>=a:
ans+=1
print(ans) |
s108621693 | p03478 | u733738237 | 1567531907 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38512 | 151 | import sys
input = sys.stdin.readline
N,A,B=list(map(int,input(),split())
print(sum(i for i in range(N)) if A <= sum(map(int,str(i))) <= B)) |
s724380000 | p03478 | u733738237 | 1567526326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 99 | N,A,B =map(int,input().split())
print(sum(i for i in range(n+1) if A <= sum(map(int,str(i))) <= B)) |
s497086657 | p03478 | u733738237 | 1567526255 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 102 | N,A,B = [map(int,input().split())]
print(sum(i for i in range(n+1)) if A <= sum(map(int,str(i))) <= B) |
s407284017 | p03478 | u733738237 | 1567526107 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 102 | N,A,B = [map(int,input().split())]
print(sum(i for i in range(n+1) if A <= sum(map(int,str(i))) <= B)) |
s910671083 | p03478 | u893063840 | 1567520781 | Python | Python (3.4.3) | py | Runtime Error | 33 | 2940 | 194 | n, a, b = map(int, input().split())
ans = 0
for num in range(1, n + 1):
s = str(num)
sm = 0
for let in s:
sm += int(let)
if a <= sm <= b:
ans += num
print(cnt)
|
s691239721 | p03478 | u455533363 | 1567011617 | Python | Python (3.4.3) | py | Runtime Error | 38 | 2940 | 168 | n,a,b = map(int,input().split())
for i in range(n):
sum=0
t=i
while t>0:
sum += t%10
t = (t-t%10)/10
if a <= sum <= b:
count += i
print(count)
|
s421882703 | p03478 | u606626641 | 1566940575 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 340 | # coding:UTF-8
n = int(input())
a = int(input())
b = int(input())
def judge(number):
power = 5
arr = []
num = number
for i in range(1, 5):
val = num % 10
num = int(num / 10)
arr.append(val)
return sum(arr) >= a and sum(arr) <= b
ans = [i for i in range(0, n + 1) if judge... |
s920760336 | p03478 | u479918572 | 1566523432 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 197 | N,A,B=map(int,input().split())
ans=0
for i in range(N):
tmp=0
number=str(i+1)
for j in range(len(number)):
tmp+=number[j]
if A<=tmp<=B:
ans+=(i+1)
print(str(ans)) |
s131867867 | p03478 | u079243139 | 1566419148 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 152 | n,a,b = map(int(input().split()))
s = 0
for i in range(n):
x = sum(list(map(int,str(i).split())))
if a <= x and x <= b:
s += x
print(s)
|
s445595935 | p03478 | u079243139 | 1566419059 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 151 | n,a,b = map(int(input().split()))
s = 0
for i in range(n):
x = sum(list(map(int,str(i).split())))
if a <= x && x <= b:
s += x
print(s)
|
s779905839 | p03478 | u104442591 | 1566399621 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 231 | n, a, b = map(int, input().split())
def divide(num):
sum = 0
while num > 0:
sum += num % 10
num /= 10
return sum
for i in range(n):
temp = divide(i+1)
ans = 0
if temp>= a and temp <= b:
ans += temp
print(ans) |
s230653305 | p03478 | u640603056 | 1566271020 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 217 | n,a,b = map(int, input().split())
value = cnt = 0
for i in range(1, n+1):
lst = []
lst = list(str(i))
for num in lst:
value += int(num)
if a <= value <= b:
cnt += i
value = 0
print(cnt) |
s142167897 | p03478 | u640603056 | 1566270989 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 222 | n,a,b = map(int, f.readline().split())
value = cnt = 0
for i in range(1, n+1):
lst = []
lst = list(str(i))
for num in lst:
value += int(num)
if a <= value <= b:
cnt += i
value = 0
print(cnt) |
s861584645 | p03478 | u994988729 | 1566245767 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 124 | n,a,b=map(int,input().split())
ans=0
for i in range(1, n+1):
s=sum(list(str(i)))
if a<=s and s<=b:
ans+=1
print(ans) |
s439023632 | p03478 | u091478521 | 1566176354 | Python | Python (3.4.3) | py | Runtime Error | 30 | 3060 | 310 | # -*- coding: utf-8 -*-
# ABC 083 B - Some Sums
# スペース区切りの整数の入力
b = [int(s) for s in input().split()]
sum = 0
for i in range(1, b[0]+1):
s = 0
t = i
while t != 0:
s = s + t % 10
t = t // 10
if (b[1] <= s) and (s <= b[2]):
sum = sum + i
print(r) |
s655221414 | p03478 | u802963389 | 1566133700 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | N, A, B = map(int, input().split())
cnt = 0
for i in range(1, N + 1):
if A <= sum(list(str(i))) <= B:
cnt += 1
print(cnt) |
s090367764 | p03478 | u181195295 | 1565922586 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 213 | N , A , B = map(int, input().split())
res = 0
for i in range(N):
temp = 0
while (a >= 10):
temp += i % 10
a = i // 10
temp += a
if (temp >= A and temp <= B):
res += temp
print(res) |
s265235145 | p03478 | u024807881 | 1565886258 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 367 | def sum_digits(number):
total = 0
while number > 0:
total += n % 10
n //= 10
return total
def main():
n, a, b = map(int, open(0).read().split())
res = 0
for i in range(1, n+1):
total = sum_digits(i)
if a <= total and total <= b:
res += total
prin... |
s798624743 | p03478 | u375870553 | 1565854231 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 268 | def main():
n, a, b = [int(i) for i in input().split()]
ans = 0
for i in range(1,n+1):
tmp = 0
for ss in str(i):
tmp += int(ss)
if a <= tmp <= b:
ans += tmp
print(ans)
if __name__ == '__main__':
main() |
s570870162 | p03478 | u375870553 | 1565854180 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 286 | def main():
n = int(input())
a = int(input())
b = int(input())
ans = 0
for i in range(1,n+1):
tmp = 0
for ss in str(i):
tmp += int(ss)
if a <= tmp <= b:
ans += tmp
print(ans)
if __name__ == '__main__':
main() |
s592473564 | p03478 | u703442202 | 1565819440 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 218 | n,a,b = map(int,input().split())
def ten(i):
wa = 0
while i != 0:
wa += i%10
i = i//10
print(wa)
for i in range(n + 1):
result = 0
if a <= ten(i) and ten(i)<=b:
result += i
print(result)
|
s506920041 | p03478 | u703442202 | 1565819398 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 217 | n.a,b = map(int,input().split())
def ten(i):
wa = 0
while i != 0:
wa += i%10
i = i//10
print(wa)
for i in range(n + 1):
result = 0
if a <= ten(i) and ten(i)<=b:
result += i
print(result) |
s271894790 | p03478 | u306071800 | 1565798965 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 161 | N, A, B = map(int, input().split())
res = 0
for i in range(N+1):
sum_of_digit(i)
if A <= sum(map(int, (list(str(i))))) <= B:
res += i
print(res)
|
s273678976 | p03478 | u401077816 | 1565659994 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | N, A ,B = map(int, input().split())
res = 0
for n in range(N+1):
if A <= int(s) <= B for s in str(n):
res += n
print(res) |
s030840835 | p03478 | u401077816 | 1565659949 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | N, A ,B = map(int, input().split())
res = 0
for n in N:
if A <= int(s) <= B for s in str(n):
res += n
print(res) |
s468262944 | p03478 | u867849998 | 1565474282 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | n,a,b = map(int, unput().split())
print(sum(i for i in range(n+1) if a<=sum(map(int,str(i)))<=b)) |
s333456774 | p03478 | u469953228 | 1565404018 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 170 | n,a,b = map(int,input().split())
ans = 0
for i in range (n+1):
k = str(i)
sum = 0
for j in range(len(k)):
sum += k[j]
if a <= sum < b:
ans += 1
print(ans) |
s763163384 | p03478 | u638282348 | 1565401450 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 191 |
k, s = map(int, input().rstrip("\n").split())
count = 0
for x in range(k + 1):
for y in range(k + 1):
for z in range(k + 1):
count += (x + y + z == s)
print(count)
|
s247639953 | p03478 | u401077816 | 1565367031 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 138 | N, A, B = map(int, input().split())
res = 0
for n in range(N+1):
if A <= sum([int(s) for s in str(n)]) <= B:
res += n
print(res)
|
s946408300 | p03478 | u401077816 | 1565366948 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N, A, B = map(int, input().split())
res = 0
for n in range(N+1):
if A <= sum([int(s) for s in str(n)]) <= B:
res += n
print(res) |
s079368304 | p03478 | u401077816 | 1565200104 | Python | Python (3.4.3) | py | Runtime Error | 31 | 2940 | 140 | N, A, B = map(int, input().split())
res = 0
for n in range(1+N):
if A <= sum([int(s) for s in str(n)]) <= B:
res += s
print(res) |
s734297030 | p03478 | u401077816 | 1565200049 | Python | Python (3.4.3) | py | Runtime Error | 32 | 2940 | 138 | N, A, B = map(int, input().split())
res = 0
for n in range(1+N):
if A <= sum(int(s) for s in str(n)) <= B:
res += s
print(res) |
s655052819 | p03478 | u759726213 | 1564980409 | Python | Python (3.4.3) | py | Runtime Error | 30 | 3060 | 209 | n, a, b = map(int, input().split())
ans = []
for i in range(1,n+1):
# i = 12
num = 0
while i != 0:
num +=i%10
i = i//10
if a <= num <= b:
ans.append(i)
print(ans.sum()) |
s361214474 | p03478 | u401077816 | 1564977794 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N, A, B = map(int input().split())
res = 0
for i in range(N+1):
if A <= sum([int(n) for n in str(i)]) <= B:
res += 1
print(res) |
s164243153 | p03478 | u401077816 | 1564977704 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | N, A, B = map(int input().split())
res = 0
for i in range(N+1):
if A <= sum([int(n) for n in str(i)]) <= B:
res += 1:
print(res) |
s000106330 | p03478 | u987143553 | 1564960080 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 273 | def main():
N = int(input())
A = int(input())
B = int(input())
counter = 0
for n in range(1, N+1):
sum = int(n / 10) + n % 10
if A <= sum and sum <= B:
counter += n
print(counter)
if __name__ == '__main__':
main() |
s268908977 | p03478 | u852517668 | 1564877454 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 124 | N, A, B = map(int, input().split())
sum = 0
for 1 in range(N + 1):
if i % 10 >= A and i % 10 <= B:
sum += i
print(sum) |
s252031772 | p03478 | u408791346 | 1564859280 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38484 | 282 | N, A, B = int(input()), int(input()), int(input())
data = []
def digitsum(n):
s = str(n)
array = list(map(int, s))
return sum(array)
n = 0
for n in range(N+1):
x = digitsum(n)
if A <= x <= B:
data.append(x)
print(sum(data)) |
s900674757 | p03478 | u408791346 | 1564859091 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38384 | 275 | N, A, B = int(input()), int(input()), int(input())
data = []
def digitsum(n):
s = str(n)
array = list(map(int, s))
return sum(array)
n = 0
for n in range(N+1):
x = digitsum(n)
if A <= x <= B:
data.append(x)
sum(data) |
s112123601 | p03478 | u736729525 | 1564708797 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 195 | def main():
N, A, B = [int(x) for x in input().split()]
a = 0
for n in range(N+1):
s = sum(int(x) for x in n)
if A <= s <= B:
a += n
return a
main()
|
s799412732 | p03478 | u759412327 | 1564502004 | Python | Python (3.4.3) | py | Runtime Error | 37 | 3060 | 138 | N,A,B = list(map(int,input().split()))
a = 0
for i in range(N+1):
S = sum(list(map(int,list(str(i)))))
if A<=S<=B:
a+=i
print(z) |
s716078345 | p03478 | u889117822 | 1564338455 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 338 | a = list(map(int,input()))
N = a[0]
A = a[1]
B = a[2]
ans = []
for a in range(10):
for b in range(10):
for c in range(10):
for d in range(10):
for e in range(10):
if 10000*a+1000*b+100*c+10*d+e <= N and a+b+c+d+e >=A and a+b+c+d+e <= B:
ans.append(10000*a+1000*b+100*c+10*d+e)
p... |
s498282389 | p03478 | u261082314 | 1564312306 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 147 | 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) |
s583673211 | p03478 | u261082314 | 1564312291 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | 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 += i
print(ans) |
s768717989 | p03478 | u374765578 | 1564170354 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 307 | def sumall(a):
n = 0
while a > 0:
n += a % 10
a = a // 10
return n
n,a,b = open(0)
n = int(n)
a = int(a)
b = int(b)
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)
|
s772133860 | p03478 | u375172966 | 1563932600 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 291 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
t4 = i %10
t3 = (i %100 -t4) //10
t2 = (i %1000 -t4 -t3*10) //100
t1 = (i %10000 -t4 -t3*10 -t2*100) //1000
c = t1 + t2 + t3 + t4
if a <= c <= b: ans += i
if n = 10**4 and a = 1: ans += 1
print(ans)
|
s448764224 | p03478 | u543569321 | 1563372832 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 257 | import math
n=input()
n=int(n)
a=input()
a=int(a)
b=input()
b=int(b)
list = []
for i in range(n+1):
x=math.floor(i/1000) +math.floor(i/100)+math.floor(i/10)+i%10
#print(x)
if(x>=a and x<=b):
list.append(i)
print(sum(list))
#print(list) |
s137535801 | p03478 | u196368253 | 1563145190 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38384 | 365 | data = input().split()
N = int(data[0])
A = int(data[1])
B = int(data[2])
total = 0
digit_total = 0
for i in range(1,N+1):
size = int(math.log10(i)+1)
digit = []
for j in range(size):
digit.append(int(str(i)[j-1]))
digit_total += digit[j]
if A <= digit_total and digit_total <= B:
... |
s646751548 | p03478 | u281216592 | 1563065465 | Python | Python (3.4.3) | py | Runtime Error | 36 | 3060 | 231 | N,A,B = [int(i) for i in input().split()]
N_str = str(N)
sum = 0
for i in range(N+1):
i_str=str(i)
for k in range(len(i_str)):
sum += int(i_str[k])
if(sum >= A and sum <=B):
S += i
sum = 0
print(S)
|
s875247443 | p03478 | u439392790 | 1562643602 | Python | Python (3.4.3) | py | Runtime Error | 27 | 2940 | 174 | N,A,B=map(int,input().split())
for i in range(1,N+1):
ans=i%10+i/10%10+i/100%10+i/1000%10+i/10000%10
if A<=ans and ans<=B:
total.append(ans)
print(sum(total)) |
s885710715 | p03478 | u236720912 | 1561662407 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 125 | arr = list(map(int, input().split()))
au = sum(i for in range(arr[0]) if arr[1] <= sum(map(int, str(i))) <= arr[2])
print(au) |
s634510078 | p03478 | u295652340 | 1561646662 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | 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) |
s673516547 | p03478 | u295652340 | 1561646567 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | 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 += 1
print(ans) |
s843163938 | p03478 | u728615412 | 1561415135 | Python | Python (3.4.3) | py | Runtime Error | 28 | 2940 | 293 | Lis = list(map(int,input().split()))
ans = 0
for k in range(Lis[0]+1):
if k%10 + (k//10)%10 + (k//100)%10 + (k//1000)%10 <= Lis[2] and k%10 + (k//10)%10 + (k//100)%10 + (k//1000)%10 >= Lis[1]:
ans += k
if N == 10000:
print(ans+10000)
else:
print(ans)
|
s562324768 | p03478 | u728615412 | 1561415046 | Python | Python (3.4.3) | py | Runtime Error | 26 | 2940 | 293 | Lis = list(map(int,input().split()))
ans = 0
for k in range(Lis[0]+1):
if k%10 + (k//10)%10 + (k//100)%10 + (k//1000)%10 <= Lis[2] and k%10 + (k//10)%10 + (k//100)%10 + (k//1000)%10 >= Lis[1]:
ans += k
if N == 10000:
print(ans+10000)
else:
print(ans)
|
s980780119 | p03478 | u663014688 | 1561410072 | Python | Python (3.4.3) | py | Runtime Error | 33 | 2940 | 221 | N,A,B = map(int, input().split())
total = 0
for num in range(1,N):
cnt = 0
num_str = str(num)
for i in num_str:
cnt += int(i)
if A <= cnt <= B:
total += num_str
print(total)
|
s861990643 | p03478 | u306060982 | 1561409788 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 8663 | Last login: Mon Jun 24 15:45:40 on ttys001
okazaki@shinji-2(16:27:24) ~
% ls [~]
#.zshrc# Downloads Pictures Untitled2.ipynb
Applications Library Public anaconda3
Desktop Movies Untitled.ipynb... |
s479079007 | p03478 | u663014688 | 1561409745 | Python | Python (3.4.3) | py | Runtime Error | 20 | 3060 | 251 | N,A,B = map(int, input().split())
l = []
for i in range(N):
if i >= 10:
keta_one = i //10
keta_ten = i % 10
sum = keta_one + keta_ten
else:
sum = i
if 2 <= i <=5:
l.append(i)
print(l)
print(sum(l))
|
s055188551 | p03478 | u974100230 | 1561089364 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 155 | N = int(input())
A, B = map(int, input().split())
ans = 0
for i in range(N + 1):
if A <= sum(map(int, list(str(i)))) <= B:
ans += i
print(ans) |
s203322622 | p03478 | u974100230 | 1561080202 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | N, A, B = map(input, input().split())
ans = 0
for i in range(N + 1):
if A <= sum(map(int, list(str(i)))) <= B:
ans += 1
print(ans)
|
s554786305 | p03478 | u974100230 | 1561080134 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 156 | N, A, B = map(input, [input() for i in range(3)])
ans = 0
for i in range(N + 1):
if A <= sum(map(int, list(str(i)))) <= B:
ans += 1
print(ans)
|
s616846402 | p03478 | u866169813 | 1561067067 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 37 | A=345
B=list(A)
print(B)
print(B[1])
|
s999406218 | p03478 | u813569174 | 1560899963 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 206 | s = input().split()
N = int(s[0])
A = int(s[1])
B = int(s[2])
k = 0
for i in range(1,N+1):
S = 0
while l >= 1:
l = i
p = l%10
l = l//10
S = S + p
if A <= S <= B:
k = k + i
print(k) |
s017866479 | p03478 | u168489836 | 1560453789 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 170 | n, a, b = [int(x) for x in input().split()]
count = 0
for i in range(a, n+1):
if sum([int(x) for x in list(str(i))]) > b:
continue
count += 1
print(count) |
s112013458 | p03478 | u168489836 | 1560453637 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | n, a, b = [int(x) for x in input().split()]
count = 0
for i in range(a, n+1):
if sum(list(str(i))) > b:
continue
i += 1
print(i) |
s716778944 | p03478 | u469063372 | 1560313776 | Python | Python (3.4.3) | py | Runtime Error | 23 | 3060 | 230 | n, a, b = map(int, input().split())
for i in range(n+1):
o = i // 10000
p = (i % 10000) // 1000
q = (i % 1000) // 100
r = (i % 100) // 10
s = i % 10
if a <= o + p + q + r + s <= b:
su += i
print(su) |
s254741654 | p03478 | u469063372 | 1560312834 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 206 | n, a, b = map(int, input().split())
for i in range(n+1):
if i >= 10:
x = i // 10
y = i - x * 10
if a <= x + y <= b:
s += i
if a <= i <= b:
s += i
print(s) |
s304005243 | p03478 | u623687794 | 1560223240 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 198 | n,a,b=map(int,input().split())
ans=0
def digitsum(n):
l=len(str(n))
re=0
for i in range(l):
re+=int(str(n[i]))
return re
for i in range(n):
if a<=digitsum(i)<=b:
ans+=i
print(ans)
|
s267270054 | p03478 | u623687794 | 1560223196 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 195 | n,a,b=map(int,input().split())
ans=0
def digitsum(n):
l=len(str(n))
re=0
for i in range(l):
re+=int(str(n[i]))
return re
for i in range(n):
if a<=digitsum(i)<=b:
ans+=i
print(i) |
s503851747 | p03478 | u558374183 | 1559834493 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 226 | l = list(map(int,input().split()))
a = 0
b = 1
c = 1
while c <= l[0]:
if a + b >= l[1] and a + b <= l[2]:
sum += c
if b == 9:
b = 0
a += 1
else:
b += 1
c = 10 * a + b
print(sum)
|
s898187717 | p03478 | u558374183 | 1559834157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 226 | l = list(map(int,input().split()))
a = 0
b = 1
c = 1
while c <= l[1]:
if a + b >= l[2] and a + b <= l[3]:
sum += c
if b == 9:
b = 0
a += 1
else:
b += 1
c = 10 * a + b
print(sum)
|
s284146350 | p03478 | u558374183 | 1559832613 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 225 | l = list(map(int,input().split()))
a = 0
b = 0
c = 0
while c <= l[1]:
if a + b >= l[2] and a + b <= l[3]:
sum += c
if b == 9:
b = 0
a += 1
else:
b += 1
c = 10 * a + b
print(sum) |
s496620935 | p03478 | u172111219 | 1559583537 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 229 | n,a,b = map(int,input().split())
def add(n,a,b):
ls = list(str(n))
pl = sum([int(i) for i in ls])
if a<= pl<= b:
return 1
else:
pass
flg = 0
for i in range(n+1):
flg += add(i,a,b)
print(flg) |
s902792416 | p03478 | u663014688 | 1559089901 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | N,A,B = map(int, input().split())
ten_keta = N[:1]
one_keta = N[1:]
ans = 0
for i in range(N+1):
if int(ten_keta) + int(one_keta) >= A and ten_keta + one_keta <= B:
ans += i
print(ans)
|
s126834141 | p03478 | u663014688 | 1559089481 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 198 | N,A,B = map(int, input().split())
ten_keta = int(N[0])
one_keta = int(N[1])
ans = 0
for i in range(N+1):
if ten_keta + one_keta >= A and ten_keta + one_keta <= B:
ans += i
print(ans)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.