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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s404209171 | p03478 | u197045432 | 1596836061 | Python | Python (3.8.2) | py | Runtime Error | 24 | 8960 | 150 | n,a,b=input().split()
ans=0
for i in range(n):
stri=str(i+1)
x=0
for j in range(len(stri))
x+=int(stri[j])
if x>=0 and x<=b:
ans+=1
print(ans) |
s080733998 | p03478 | u939790872 | 1596682437 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9084 | 148 | N, A, B = map(int, input().split())
sum = 0
for num in range(N + 1):
if A <= sum([int(x) for x in str(num)]) <= B:
sum += num
print(sum) |
s744878610 | p03478 | u939790872 | 1596682387 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9040 | 146 | N, A, B = map(int, input().split())
sum = 0
for num in range(N + 1):
if A <= sum([int(x) for x in str(num)]) <= B:
sum += 1
print(sum) |
s549865942 | p03478 | u939790872 | 1596682319 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9112 | 146 | N, A, B = map(int(input().split()))
sum = 0
for num in range(N + 1):
if A <= sum([int(x) for x in str(num)]) <= B:
sum += 1
print(sum) |
s581389012 | p03478 | u794831235 | 1596676698 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9064 | 212 | n,a,b=(int(x) for x in input().split())
c=0
def sual(N,A,B):
l=list('{}'.format(N))
s=sum(l)
if A<=s<=B:
return True
else:
return False
for x in range(n):
if sual(x+1,a,b):
c=c+x+1
print(c)
|
s013829654 | p03478 | u794831235 | 1596676651 | Python | Python (3.8.2) | py | Runtime Error | 19 | 8920 | 209 | n,a,b=int(x) for x in input().split()
c=0
def sual(N,A,B):
l=list('{}'.format(N))
s=sum(l)
if A<=s<=B:
return True
else:
return False
for x in range(n):
if sual(x+1,a,b):
c=c+x+1
print(c) |
s535283805 | p03478 | u914883924 | 1596655474 | Python | Python (3.8.2) | py | Runtime Error | 20 | 9000 | 155 | n,a,b=map(int,input().split())
n=0
for i in range (1,n+1):
result=sum(list(map(int,str(i))))
if result>=a and result<=b:
ans+=i
print(ans) |
s492825627 | p03478 | u593567568 | 1595884081 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9084 | 147 | N,A,B = map(int,input().split())
ans = 0
for i in range(1,N+1):
d = sum(list(map(int,list[str(i)])))
if A <= d <= B:
ans += 1
print(ans)
|
s073977188 | p03478 | u593567568 | 1595884063 | Python | Python (3.8.2) | py | Runtime Error | 23 | 9204 | 140 | N,A,B = map(int,input().split())
ans = 0
for i in range(1,N+1):
d = sum(map(int,list[str(i)]))
if A <= d <= B:
ans += 1
print(ans) |
s760100229 | p03478 | u752552310 | 1595817519 | Python | Python (3.8.2) | py | Runtime Error | 25 | 9176 | 170 | n, a, b = map(int, input().split())
total = 0
for i in range(n+1):
x = str(i)
y = 0
for j in X:
y += int(j)
if a <= y <= b:
total += i
print(total) |
s114914730 | p03478 | u752552310 | 1595817447 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9052 | 165 | n, a, b = map(int, input().split())
total = 0
for i in range(n+1):
x = str(i)
y = 0
for j in X:
y += j
if a <= y <= b:
total += i
print(total) |
s665924626 | p03478 | u556594202 | 1595813658 | Python | Python (3.8.2) | py | Runtime Error | 30 | 9132 | 226 | N=int(input())
A=int(input())
B=int(input())
sum=0
for i in range(N+1):
nums = list(str(i))
tmp = 0
for j in nums:
tmp = tmp + int(j)
if A<=tmp:
if tmp<=B:
sum = sum + i
print(sum)
|
s780419937 | p03478 | u204800924 | 1595690811 | Python | Python (3.8.2) | py | Runtime Error | 26 | 8992 | 521 | n, a, b = map(int, input().split())
ans = 0
for num in range(n):
num += 1
num_0 = num
place_of_10000 = num//10000
num -= 10000*place_of_10000
place_of_1000 = num//1000
num -= 1000*place_of_1000
place_of_100 = num//100
num -= 100*place_of_100
place_... |
s920028245 | p03478 | u204800924 | 1595690763 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9012 | 380 | n, a, b = map(int, input().split())
ans = 0
for num in range(n):
num += 1
num_0 = num
place_of_1000 = num//1000
num -= 1000*place_of_1000
place_of_100 = num//100
num -= 100*place_of_100
place_of_10 = num//10
num -= 10*place_of_10
tmp = place_pf_10000 + place_of_1000 + place_of_100 + place_of_10 + ... |
s265323582 | p03478 | u011870930 | 1595430268 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9140 | 138 | N, A, B = map(int, input().split())
count = 0
for i in range(N + 1):
if A <= i <= B:
count += sum(list(str(i)))
print(count) |
s066572651 | p03478 | u433380437 | 1594700441 | Python | PyPy3 (7.3.0) | py | Runtime Error | 92 | 74452 | 213 | N, A, B = [int(input()) for i in range(3)]
count = 0
for n in range(1,N+1):
s = 0
t = n
while (n>0):
s = s + n%10
n = n//10
if s >= A and s <= B:
count +=t
print(count)
|
s467856856 | p03478 | u823391732 | 1594491195 | Python | PyPy3 (7.3.0) | py | Runtime Error | 263 | 74468 | 194 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
sum = 0
while i != 0:
sun += i%10
i = i//10
if sum >= a and sum <= b:
ans += i
print(ans) |
s304124191 | p03478 | u823391732 | 1594491179 | Python | PyPy3 (7.3.0) | py | Runtime Error | 97 | 74532 | 195 | n, a, b = map(int, input().split())
ans = 0
for i in range(1, n+1):
sum = 0
while i != 0:
sun += i%10]
i = i//10
if sum >= a and sum <= b:
ans += i
print(ans) |
s436806426 | p03478 | u548514780 | 1594316795 | Python | Python (3.8.2) | py | Runtime Error | 25 | 8880 | 224 | N,A,B=map(int,input().split())
souryou=0
for i in range(N):
j=i+1
j_str=str(j)
goukei=0
for k in range(len(j_str)):
goukei=goukei+int(j_str[k])
if goukei>=A&&goukei<=B:
souryou=souryou+j
print(str(souryou)) |
s404779500 | p03478 | u029056424 | 1593976547 | Python | PyPy3 (7.3.0) | py | Runtime Error | 91 | 74232 | 187 | N,A,B=map(int,input().split())
Alltotal=0
for i in range(1,N+1):
partTotal=0
while i!=0:
partTotal+=i%10
i=i//10
if A<=partTotal and partTotal<=b:
Alltotal+=partTotal
|
s029013396 | p03478 | u845982808 | 1593649668 | Python | Python (3.8.2) | py | Runtime Error | 27 | 8996 | 108 | 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))) |
s893800631 | p03478 | u845982808 | 1593565285 | Python | Python (3.8.2) | py | Runtime Error | 24 | 9084 | 254 | n,a,b = map(int, input().split())
ans = 0
def find_sum(x):
count = 0
while x > 0:
count += x % 10
x = x // 10
return count
for i in range(1, n+1):
count = find_sum(i)
if A <= count <= B:
ans += n
print(ans) |
s123865633 | p03478 | u090406054 | 1592866326 | Python | Python (3.8.2) | py | Runtime Error | 21 | 9172 | 139 | n,a,b=map(int,input().split())
cnt=0
for i in range(n):
n_list=list(int(i))
if sum(n_list)>=a and sum(n_list)<=b:
cnt+=i
print(cnt) |
s911749422 | p03478 | u381068238 | 1592686185 | Python | PyPy3 (7.3.0) | py | Runtime Error | 90 | 74616 | 126 | N, A, B = map(int, input().split())
ans = 0
for i in range(N+1):
if i <= B && i >= A:
ans = ans + i
print(ans)
|
s143584144 | p03478 | u316095188 | 1592380175 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 177 | N, A, B = [int(input()) for i in range(3)]
count = 0
for n in range(1,N+1):
d = str(n)
x = list(map(int, d))
y = sum(x)
if A <= y <= B:
count += n
print(count)
|
s202721934 | p03478 | u316095188 | 1592380040 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 177 | N, A, B = [int(input()) for i in range(3)]
count = 0
for n in range(1,N+1):
d = str(n)
x = list(map(int, d))
y = sum(x)
if A <= y <= B:
count += n
print(count)
|
s467056177 | p03478 | u316095188 | 1592379609 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 177 | N, A, B = [int(input()) for i in range(3)]
count = 0
for n in range(1,N+1):
d = str(n)
x = list(map(int, d))
y = sum(x)
if A <= y <= B:
count += 1
print(count)
|
s572051531 | p03478 | u316095188 | 1592379465 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 176 | N, A, B = [int(input()) for i in range(3)]
count = 0
for n in range(1:N+1):
d = str(n)
x = list(map(int, d))
y = sum(x)
if A <= y <= B:
count += 1
print(count) |
s609640484 | p03478 | u498136917 | 1592177290 | Python | Python (3.4.3) | py | Runtime Error | 32 | 2940 | 148 | n, a, b = map(int, input().split())
count = 0
for i in range(1, n+1):
if a <= sum(map(int,list(str(i)))) <= b:
s += i
print(s) |
s687329700 | p03478 | u581403769 | 1592099272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | m, a, b = map(int, input().split())
n = list(str(m))
count = 0
for j in range(m):
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s866382606 | p03478 | u581403769 | 1592099235 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 200 | m, a, b = map(int, input().split())
n = list(str(n))
count = 0
for j in range(m):
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s432342569 | p03478 | u581403769 | 1592099128 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | n, a, b = map(int, input().split())
n = list(str(n))
count = 0
for j in range(n):
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s590395463 | p03478 | u581403769 | 1592099061 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | n, a, b = map(int, input())
n = list(str(n))
count = 0
for j in range(n):
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s554143139 | p03478 | u581403769 | 1592098404 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 191 | n, a, b = map(int, input())
n = list(str(n))
count = 0
for j in range(n)
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s737176553 | p03478 | u581403769 | 1592098311 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 190 | n = list(input())
a, b = map(int, input())
count = 0
for j in range(n):
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count)
|
s232174418 | p03478 | u581403769 | 1592098263 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 188 | n = list(input())
a, b = map(int, input())
count = 0
for j in range(n)
l = [n[i] for i in range(len(j))]
sum = sum(l)
if a <= sum and sum <= b:
count += 1
print(count) |
s948740692 | p03478 | u305760064 | 1591910272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 143 | n,a,b=map(int,input().split())
sum=0
for i in range(n):
if 2 <= i[-1] + i[-2] and i[-1] + i[-2] <=5:
sum +=i[-1]+i[-2]
print(sum) |
s093486906 | p03478 | u168416324 | 1591805090 | Python | Python (3.4.3) | py | Runtime Error | 32 | 3064 | 189 | n,a,b=map(int,input().split())
ans=[0]*36
def ssum(n):
li=list(str(n))
ret=0
for i in li:
ret+=int(i)
return(ret)
while n!=0:
ans[ssum(n)]+=n
n-=1
print(sum(ans[a:b+1])) |
s723191375 | p03478 | u644126199 | 1591663928 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 671 | line = input().split()
N = int(line[0])
A = int(line[1])
B = int(line[2])
su =0
for i in range(1,N+1):
if i>=1000 :
if int(i/1000)+int((i-int(i/1000)*1000)/100)+int((((i-int(i/1000)*1000)-int(i/100)*100)/10)+int(i%10)<=B and int(i/1000)+int((i-int(i/1000)*1000)/100)+int((((i-int(i/1000)*1000)-int(i/100)*100)/1... |
s991142917 | p03478 | u946370443 | 1591414188 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38640 | 300 | N=int(input())
A=int(input())
B=int(input())
Answer=[]
for i in range(10):
for j in range(10):
for k in range(10):
for l in range(10):
if i*10**3+j*10**2+k*10+l<=N and A<=i+j+k+l<=B:
Answer.append(i*10**3+j*10**2+k*10+l)
print(sum(Answer))
|
s971419043 | p03478 | u262481526 | 1590610152 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 227 | import math
N, A, B = map(int, input().split())
ans = 0
for x in range(1, N + 1):
SUM = 0
num = x
while x > 0:
SUM += (x % 10)
x // = 10
if A <= SUM <= B:
ans += num
print(ans) |
s056372907 | p03478 | u874001579 | 1590445562 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 179 | n = list(map(int, input().split()))
a,b = int(input()),int(input())
ans = 0
for i in range(n[0]+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += i
print(ans) |
s064872910 | p03478 | u874001579 | 1590407276 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 506 | import sys
sys.setrecursionlimit(10**6)
#Some Sums
n,a,b = int(input()), int(input()), int(input())
n_list = []
for i in range(1,n+1):
n_list.append(str(i))
#evaluete
acpt = []
for i in range(n):
if len(n_list[i]) == 1:
if a <= int(n_list[i]) <= b: acpt.append(int(n_list[i]))
else: acpt.append(0)
else:... |
s613731028 | p03478 | u874001579 | 1590406597 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 466 | #Some Sums
n,a,b = int(input()), int(input()), int(input())
n_list = []
for i in range(1,n+1):
n_list.append(str(i))
#evaluete
acpt = []
for i in range(n):
if len(n_list[i]) == 1:
if a <= int(n_list[i]) <= b: acpt.append(int(n_list[i]))
else: acpt.append(0)
else:
splt = []
for j in range(len(n_... |
s772668391 | p03478 | u574464625 | 1590382593 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 173 | n,a,b = map(int, input().split())
s=0
for i in range(N+1):
x = i
m = 0
while x:
m += x % 10
x //= 10
if a <= m <= b:
s += i
print(s) |
s700844623 | p03478 | u294385082 | 1590369424 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 178 | n,a,b = map(int,input().split())
sum = 0
sum1 = 0
for i in range(1,n+1):
N = list(str(i))
for i in N:
sum += int(i)
if a<=sum <= b:
sum1 += sum
print(sum1) |
s831703395 | p03478 | u347600233 | 1590214114 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 145 | n, a, b = map(int, input().split())
s = 0
for i in range(1, n + 1):
t = sum(list(str(i)))
if a <= sum(list(str(i))) <= b:
s += t
print(s) |
s742595118 | p03478 | u441246928 | 1590201771 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 145 | N,A,B = map(int,input().split())
Score = 0
for i in range(N+1):
x = sum(list(map(int,str(i)))
if A<= x <= B :
cnt += i
print(cnt) |
s679742305 | p03478 | u991134049 | 1589778721 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38256 | 103 | N, A, B = map(int, input().split())
print(sum(i for i in range(N+1)) if A <= sum(map(int, str(i)))<= B) |
s610995116 | p03478 | u918770092 | 1589626015 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 224 | n, a, b = map(int, [input() for i in range(3)])
def func(m):
s = 0
while(m > 0):
s = s + (m % 10)
m = m//10
return int(s)
cnt = 0
for i in range(n+1):
S = func(i)
if a <= S <= b:
cnt += i
print(cnt) |
s751310469 | p03478 | u536034761 | 1589480055 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 181 | N, A, B = map(int, input().split())
count = 0
for i in range(1, N + 1):
sum = 0
number = str(i)
for j in number:
sum += int(j)
count += 1 if A <= sum <= B
print(count) |
s413066181 | p03478 | u317533286 | 1589134191 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 264 | N, A, B = map(int, input().split)
List = []
for i in range(1, N+1):
f1 = i // 100
f2 = (i - 100 * f1) // 10
f3 = (i - 100 * f1 - 10 * f2)
s1 = f1 + f2 + f3
List.append(s1)
for i in List:
if not A <= i <= B:
List.remove(i)
s2 = sum(List)
print(s2)
|
s024822698 | p03478 | u317533286 | 1589133946 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 260 | N, A, B = map(int, input().split)
List = []
for i in range(1, N+1):
f1 = i // 100
f2 = (i - 100 * f1) // 10
f3 = (i - 100 * f1 - 10 * f2)
s1 = f1 + f2 + f3
List.append(s1)
for i in List:
if not A <= i <= B:
List.del[i]
s2 = sum(List)
print(s2) |
s041802321 | p03478 | u967822229 | 1589062243 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 217 | N, A, B = [int(input()) for i in range(3)]
ans = 0
for i in range(0, N+1):
tmp=i
sum=0
while(tmp>0):
sum += tmp%10
tmp = int(tmp/10)
if A<=sum and sum<=B:
ans+=i
print(ans) |
s346684249 | p03478 | u967822229 | 1589062229 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 234 | N, A, B = [int(input()) for i in range(3)]
ans = 0
for i in range(0, N+1):
tmp=i
sum=0
while(tmp>0):
sum += tmp%10
tmp = int(tmp/10)
if A<=sum and sum<=B:
ans+=i
print(i)
print(ans) |
s903779505 | p03478 | u165268875 | 1588979367 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | 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)
|
s043342298 | p03478 | u165268875 | 1588979335 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 106 | 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) |
s257715007 | p03478 | u227085629 | 1588963938 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 150 | n,a,b = map(int,input().split())
t = 1
ans = 0
while t <=n:
a = str(t)
b = list(map(int,a))
s = sum(b)
if a <= s <= b:
ans += s
print(ans) |
s794902451 | p03478 | u020224218 | 1588878484 | Python | PyPy3 (2.4.0) | py | Runtime Error | 182 | 38256 | 213 | n,a,b = map(int, input().split())
cnt = 0
def digidsum(x):
s = str(n)
array_list = list(map(int,s))
return sum(array_list)
for i in range(n):
if sum(i+1) >= a and sum(i+1) <= b:
cnt += i
print(cnt) |
s171458323 | p03478 | u158899997 | 1588828620 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 380 | import sys
def main():
input = sys.stdin.readline
N, A, B = map(int,input.split())
#print('N:%d A:%d B: %d' % (N,A,B))
answer = []
for i in range(N+1):
s = sum( map(int,list(str(i)) )) # list of int -> sum
if s >= A and s <= B: answer.append(i)
#print('i:%d s:%d' % (i,s))
... |
s286718244 | p03478 | u266113953 | 1588735240 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 175 | N, A, B = map(int,input().split())
result = 0
for n in range(N):
sm = 0
for i in range(len(n)):
sm += n[i]
if A<=sm<=B:
result += 1
print(result) |
s112585031 | p03478 | u865121659 | 1588601087 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | type1 =[]
sum1 = 0
N, A, B = map(int, input().split())
for i in range(N):
sum1 = i[0]+i[1]
if sum1 >= A and sum1 <= B:
type1.append(i)
print(sum(type1)) |
s021866608 | p03478 | u285265363 | 1588566544 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38256 | 227 | n = int(input())
a = int(input())
b = int(input())
ans = 0
for i in range(1, n+1):
s = 0
num = i
while num > 0:
s = s + num % 10
num = num // 10
if a <= s <= b:
ans = ans + i
print(ans)
|
s256180892 | p03478 | u285265363 | 1588566462 | Python | PyPy3 (2.4.0) | py | Runtime Error | 184 | 38384 | 227 | n = int(input())
a = int(input())
b = int(input())
ans = 0
for i in range(1, n+1):
s = 0
num = i
while num > 0:
s = s + num % 10
num = num // 10
if a <= s <= b:
ans = ans + i
print(ans)
|
s170204772 | p03478 | u285265363 | 1588566330 | Python | PyPy3 (2.4.0) | py | Runtime Error | 173 | 38256 | 233 | n = int(input())
a = int(input())
b = int(input())
ans = 0
for i in range(1, n+1):
s = 0
num = i
while num > 0:
s = s + num % 10
num = num // 10
if a <= s and s <= b:
ans = ans + i
print(ans)
|
s795895447 | p03478 | u747005359 | 1588542376 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3068 | 141 | n, a, b = map(int, input().split())
cnt = 0
for i in range(1, N+1):
if a <= sum(list(map(int, str(i)))) <= b:
cnt += i
print(cnt) |
s376994031 | p03478 | u413021823 | 1588529376 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38512 | 142 | n, a, b = map(int, input().split())
count = 0
for i in range(1, N+1):
if a <= sum(map(int, str(i))) <= b:
count += 1
print(count)
|
s749185721 | p03478 | u183754334 | 1588448809 | Python | Python (3.4.3) | py | Runtime Error | 38 | 3060 | 309 | N, A, B = list(map(int, input().rstrip().split(' ')))
LIST_RESULT = []
for i in range(1, N+1):
str_i = str(i)
l = len(str_i)
sum = 0
for x in range(l):
sum += int(str_i[x])
if A <= sum and sum <= B:
LIST_RESULT.append(sum)
sum_result = sum(LIST_RESULT)
print(sum_result) |
s438438483 | p03478 | u781105394 | 1588206262 | Python | PyPy3 (2.4.0) | py | Runtime Error | 183 | 38384 | 259 | n, a, b=map(int,input().split())
count=1
sum=0
while count<=n :
ts=int(count/10000)
s=int(count/1000)
h=int(count/100)
t=int(count/10)
o=count%10
if ts+s+h+t+o >= a and ts+s+h+t+o <= b:
sum += count
count += 1
print(sum) |
s335653119 | p03478 | u781105394 | 1588206062 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38256 | 432 | n, a, b=input().split(" ")
count=1
sum=0
while count<=n :
ts=int(count/10000)
#print(" "+str(ts))
s=int(count/1000)
#print(" "+str(s))
h=int(count/100)
#print(" "+str(h))
t=int(count/10)
#print(" "+str(t))
o=count%10
#print(" "+str(o))
#print("ts+s+h+t+o="+str(ts+s+h+t+o))
... |
s736172462 | p03478 | u781105394 | 1588205927 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38256 | 450 | n=int(input())
a=int(input())
b=int(input())
count=1
sum=0
while count<=n :
ts=int(count/10000)
#print(" "+str(ts))
s=int(count/1000)
#print(" "+str(s))
h=int(count/100)
#print(" "+str(h))
t=int(count/10)
#print(" "+str(t))
o=count%10
#print(" "+str(o))
#print("ts+s+h+t+o="+... |
s677223872 | p03478 | u252828980 | 1588038744 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 169 | n,a,b = map(int,input().split())
sum1 = 0
ans = 0
for i in range(1,n+1):
for j in range(len(str(i)):
sum1 +=str(i)[j]
if a<= sum1 <=b:
ans += sum1
print(ans) |
s232243781 | p03478 | u808193913 | 1587998769 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 179 | n = int(input())
a = int(input())
b = int(input())
sum = 0
for i in range(1,n+1):
if a<=(i//10000 + i//1000%10 + i//100%10 + i//10%10 + i%10)<=b:
sum += i
print(sum)
|
s809697645 | p03478 | u873756840 | 1587869596 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38512 | 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)
|
s411749617 | p03478 | u873756840 | 1587869377 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 140 | n, a, b, = map(int,input().split())
ans = 0
for i in range(n+1):
if a <= sum(list(map(int,list(str)))):
ans += i
print(ans)
|
s258244401 | p03478 | u549161102 | 1587750206 | Python | Python (3.4.3) | py | Runtime Error | 35 | 3060 | 162 | n,a,b = map(int, input().split())
total = 0
for i in range(1,n+1):
array = list(map(int,str(i)))
if a< sum(array) and sum(array)<b :
sum += i
print(total) |
s362442774 | p03478 | u549161102 | 1587747976 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 127 | n,a,b = map(int, input().split())
sum = 0
for i in range(1,n+1):
str(i)
if a< str(i) and str(i)<b :
sum += i
print(sum) |
s799425794 | p03478 | u549161102 | 1587746941 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 257 | 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)
|
s462878032 | p03478 | u549161102 | 1587746837 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 249 | 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 and i+j<b :
sum += 1000*i + 100*j + 10*k + l
print(sum) |
s496419719 | p03478 | u642418876 | 1587669675 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | n,a,b=map(int,input().split())
l=[]
for i in range(1,n+1):
s=sum(list(map(int,str(i))))
if s>=a s<=b:
l.append(i)
print(sum(l))
|
s259967736 | p03478 | u962175226 | 1587607467 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 146 | n = int(input())
a = list(map(int,input().split()))
x = sorted(a, reverse = True)
la = x[1 :: 2]
lb = x[0 :: 2]
ans = max(lb) -min(la)
print(ans) |
s963618748 | p03478 | u725359833 | 1587604909 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 376 | n,a,b=map(int,input().split(" "))
kouho=[]
for i in range(0,n+1):
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(int(i))
... |
s989467031 | p03478 | u725359833 | 1587604868 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 335 | n,a,b=map(int,input().split(" "))
kouho=[]
for i in range(0,n+1)
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(int(i))
print(sum(kouho))
... |
s325674958 | p03478 | u725359833 | 1587604838 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 319 | import math
n,a,b=map(int,input().split(" "))
kouho=[]
for i in range(0,n+1)
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(int(i))
print(sum(kouho))
|
s117680499 | p03478 | u725359833 | 1587604806 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 274 | import math
n,a,b=map(int,input().split(""))
kouho=[]
for i in range(0,n+1)
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(int(i))
print(sum(kouho))
|
s116986583 | p03478 | u725359833 | 1587604777 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 225 | import math
n,a,b=map(int,input().split(""))
kouho=[]
for i in range(0,n+1)
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(i)
print(sum(kouho))
|
s873551964 | p03478 | u725359833 | 1587604701 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 182 | import math
n,a,b=map(int,input().split(" "))
kouho=[]
for i in range(0,n+1)
i=str(i)
keta=list(map(int,i))
wa=sum(keta)
if a<=wa<=b:
kouho.append(i)
print(sum(kouho))
|
s781885812 | p03478 | u581603131 | 1587488669 | Python | Python (3.4.3) | py | Runtime Error | 39 | 3060 | 214 | N, A, B = map(int, input().split())
sum = 0
ans = 0
for i in range(1, N+1):
for k in range(len(str(i))-1):
i = str(i)
sum += int(i[k])
if A<=sum<=B:
ans += int
sum = 0
print(ans) |
s850824260 | p03478 | u762755436 | 1587485673 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 301 | def digitSum(n):
#数値を文字列に変換
s = str(n)
#1文字ずつ数値化し配列にする
array = list(map(int,s))
#合計値を返す
return sum(array)
N,A,B = map(int,input().split())
sum = 0
for i in range(N+1):
if digitSum(i) <=B and digitSum(i)>=A:
sum +=i
print(sum) |
s219998295 | p03478 | u354863714 | 1587241988 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 327 | #ANS-3
input_N,A,B = input_all.split()[0],int(input_all.split()[1]),int(input_all.split()[2])
count = 0
for i in range(int(input_N)+1):
sum_all = 0
i_str = str(i)
for j in range(len(i_str)):
sum_all += int(i_str[j])
if A<=sum_all:
if sum_all<=B:
count += i
print... |
s221378398 | p03478 | u205046116 | 1587004756 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 114 | N, A, B = map(int, input().split())
print(sum(i for in range(N + 1)
if A <= sum(map(int, str(i))) <= B)) |
s640172935 | p03478 | u727551259 | 1587002636 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 177 | n = int(input())
a = int(input())
b = int(input())
ttl = 0
for i in range(1,n+1):
nums = sum(list(map(int,str(i)[:])))
if nums >= a and nums <= b:
ttl += i
print(ttl) |
s165494101 | p03478 | u201387466 | 1586992473 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 298 | N,A,B = map(int,input().split())
s = 0
for i in range(1,N+1):
j = i
x0 = j // 10000
j -= x * 10000
x1 = j // 1000
j -= x * 10000
x2 = j // 100
j -= x * 10000
x3 = j // 10
j -= x * 10000
x4 = j
if A <= x0 + x1 + x2 + x3 + x4 and B >= x0 + x1 + x2 + x3 + x4:
s += i
print(s) |
s305012094 | p03478 | u656330453 | 1586884399 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | N, A, B = map(int, input().split())
print(sum(i for i in range(N+1) if A <= sum(map(int, str(i))) <= B) |
s627177795 | p03478 | u602158689 | 1586875186 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 229 | temp = input().split()
n = int(temp[0])
a = int(temp[1])
b = int(temp[2])
def findDigit(int num,int digit):
while digit > 0 or num <= 0:
num %= 10
num /= 10
digit -= 1
return num
print(findDigit(198,1)) |
s059861162 | p03478 | u113750443 | 1586103143 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 684 | def nyu():
num1,num2,num3 = input().split()
#num2 = list(map(int,input().split()))
num1 = int(num1)
num2 = int(num2)
num3 = int(num3)
return num1,num2,num3
def check(N,A,B):
sum_cnt=0
for n in range(N+1):
sum:int = 0
tmp_n = n
sum += int(tmp_n/10000)
... |
s890368080 | p03478 | u113750443 | 1586103088 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 684 | def nyu():
num1,num2,num3 = input().split()
#num2 = list(map(int,input().split()))
num1 = int(num1)
num2 = int(num2)
num3 = int(num3)
return num1,num2,num3
def check(N,A,B):
sum_cnt=0
for n in range(N+1):
sum:int = 0
tmp_n = n
sum += int(tmp_n/10000)
... |
s569381512 | p03478 | u440129511 | 1585785031 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3316 | 187 | n,a,b=map(int,input().split())
n1=list(range(1,n+1))
k=[]
for j in range(n):
n2=sum(int(i) for i in n1[j])
if a<=n2<=b:k.append(n1[j])
else:pass
print(sum(int(l) for l in k))
|
s614869147 | p03478 | u358254559 | 1585758227 | Python | PyPy3 (2.4.0) | py | Runtime Error | 175 | 38384 | 152 | n,a,b = map(int, input().split())
ans=0
for i in range(n):
num=str(i+1)
sm=0
for j in num:
sm+=j
if a<=sm<=b:
ans+=1
print(ans)
|
s241281573 | p03478 | u358254559 | 1585758203 | Python | PyPy3 (2.4.0) | py | Runtime Error | 185 | 38256 | 151 | n,a,b = map(int, input().split())
ans=0
for i in range(n)
num=str(i+1)
sm=0
for j in num:
sm+=j
if a<=sm<=b:
ans+=1
print(ans)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.