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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
s271773831 | p03478 | u034128150 | 1585502511 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 180 | n, a, b = input().split()
s = 0
for i in range(n+1):
digitsum = i%10 + (i//10)%10 + (i//100)%10 + (i//1000)%10 + (i//10000)%10
if a <= digitsum <= b:
s += i
print(s) |
s136954621 | p03478 | u034128150 | 1585502461 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 179 | n, a, b = input().split()
s = 0
for i in range(n+1):
digitsum = i%10 + (i//10)%10 + (i//100)%10 + (i//1000)%10 + (i//10000)%10
if a <= digitsum <= b:
s += i
print(i) |
s521977714 | p03478 | u160972560 | 1585262518 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 417 | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 13:58:43 2020
@author: 藤原聖士
"""
N=int(input())
A=int(input())
B=int(input())
check=0
checks=0
count=0
for i in range(N):
checks=0
Ns=i+1
while True:
check=Ns%10
checks+=check
Ns=int(Ns/10)
if Ns==0:
... |
s093154490 | p03478 | u160972560 | 1585262457 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 416 | # -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 13:58:43 2020
@author: 藤原聖士
"""
N=int(input())
A=int(input())
B=int(input())
check=0
checks=0
count=0
for i in range(N):
checks=0
Ns=i+1
while True:
check=Ns%10
checks+=check
Ns=int(Ns/10)
if Ns==0:
... |
s357973422 | p03478 | u731665172 | 1585185459 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | N,A,B=map(int,input().split())
ans=0
for i in range(N+1):
if A<=sum(map(str,i))<=B:
ans+=1
print(ans) |
s592720577 | p03478 | u731665172 | 1585185415 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 121 | N,A,B=map(int,input().split())
ans=0
for i in range(N+1):
if A<=sum(map(int,i))<=B:
ans+=1
print(ans)
|
s712145454 | p03478 | u851706118 | 1585088482 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 179 | n = int(input())
a = int(input())
b = int(input())
total = 0
for i in range(1, n+1):
wa = sum((map(int, str(i))))
if a <= wa and wa <= b:
total += wa
print(total) |
s446513141 | p03478 | u291914812 | 1584928333 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 192 | N, A, B = map(int, input().split())
ans = 0
for i in range(1, N+1):
sum = 0
k = i
while k > 0:
sum = sum + k % 10
k = k // 10
if A =< sum =< B:
ans = ans + i
print(ans)
|
s047418168 | p03478 | u291914812 | 1584928242 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 187 | N, A, B = map(int, input().split())
ans = 0
for i in (1, N+1):
sum = 0
k = i
while k > 0:
sum = sum + k % 10
k = k // 10
if A =< sum =< B:
ans = ans + i
print(ans)
|
s273798879 | p03478 | u291914812 | 1584928139 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 186 | N, A, B = map(int, input().split())
ans = 0
for i in (1, N+1):
sum = 0
k = n
while k > 0:
sum = sum + k % 10
k = k // 10
if A =< sum =< B:
ans = ans + n
print(ans)
|
s288777190 | p03478 | u858464419 | 1584924923 | Python | Python (3.4.3) | py | Runtime Error | 34 | 3316 | 130 | n, a, b = map(int, input().split())
for i in range(n+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += 1
print(ans) |
s442502603 | p03478 | u282860613 | 1584923801 | Python | PyPy3 (2.4.0) | py | Runtime Error | 167 | 38640 | 168 | N, A, B = map(int, input().split())
Num = 0
for i in range(N+1):
list = [int(a) for a in list(str(i))]
if sum(list) >= A and sum(list) <= B:
Num += 1
|
s849888018 | p03478 | u089142196 | 1584851986 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 162 | N,A,B=map(int,input().split())
ans=0
for i in range(1,N+1):
S=str(i)
sum=0
for num in S:
sum += num
if A<=sum and sum<=B:
ans+= i
print(ans) |
s235617910 | p03478 | u697696097 | 1584679728 | Python | Python (3.4.3) | py | Runtime Error | 31 | 2940 | 156 | n,a,b=map(int,input().split())
cnt=0
for i in range(1,n+1):
ss=str(i)
x=0
for s in ss:
x+=int(s)
if x>=a and x <= b:
xnt+=1
print(cnt) |
s588411747 | p03478 | u699944218 | 1584216035 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 168 | N , A, B = int(input().split())
S = str(N)
count = 0
s for a in S:
s = [a for a in S]
i for i in range(S):
Ns = sum(s[i])
if A <= Ns <= B:
count += N
print(count) |
s453911102 | p03478 | u199191577 | 1584194504 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 236 | n, min_num, max_num = [int(x) for x in input().split()]
xs = range(1, n + 1)
def digit_sum(x):
return sum([int(d) for d in str(x)])
answers = [x for x in xs if min_num <= digit_sum(x) <= max_num]
print(sum(answers)) for x in answers |
s540717305 | p03478 | u163874353 | 1584104647 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 185 | N, A, B = map(int, input().split())
l = []
for i in range(1, N + 1):
for j in range(str(i)):
wa += int(j)
if wa >= A and wa <= B:
l.append(i)
print(sum)
|
s186187247 | p03478 | u361826811 | 1584027685 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1373 | #include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdi... |
s756862920 | p03478 | u699944218 | 1583885261 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | N, A, B = list(map(int,input().split()))
res = 0
for i in range(N+1):
if A <= sum(int(s) for s in str(s)) <= B:
res += i
print(res) |
s941240562 | p03478 | u699944218 | 1583884856 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 140 | N, A, B = list(map(int, input().split()))
res = 0
for i in range(N+1):
if A <= sum([int(s) for s in int(i)]) <= B:
res += i
print(res) |
s587971250 | p03478 | u069547849 | 1583799852 | Python | Python (3.4.3) | py | Runtime Error | 31 | 3296 | 171 | x, a, b, = map(int, input().split())
sum_number = []
for i in range(x+1):
if a <= sum(map(int, str(i))) <= b:
sum_number += [i]
priny(sum(sum_number))
|
s805558321 | p03478 | u069547849 | 1583799749 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 165 | a, b, x = map(int, input().split())
sum_number = []
for i in range(x+1):
if a< sum(map(int, str(i))) < b:
sum_number += [i]
priny(sum(sum_number))
|
s694915213 | p03478 | u217547685 | 1583784762 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38256 | 174 | n, a, b = map(int, input().split())
total = 0
for i in range(1, n+1):
x = sum([int(j) for j in str(i)])
if a <= x <= b:
total = total + x
print(total) |
s509385427 | p03478 | u599669731 | 1583127099 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 135 | n,a,b=mao(int,input().split())
ans=0
for i in range(n+1):
if a <= sum(list(map(int,list(str(i))))) <=b:
ans += i
print(ans) |
s479489164 | p03478 | u309018392 | 1582657972 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | N,A,B=map(int,input().split())
print(sum(i in i range(1,N+1) if A<=sum(map(int,str(i)))<=B))
|
s471160290 | p03478 | u309018392 | 1582657806 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | N,A,B=map(int,input().split())
print(sum(i in i range(1,N+1)
if A<=sum(map(int,str(i)))<=B))
|
s873042672 | p03478 | u309018392 | 1582657531 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | N,A,B=map(int,input().split())
print(sum(i in i range(1,N+1)
if A<=sum(map(int,str(i)<=B))) |
s155622150 | p03478 | u907549201 | 1582420052 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 165 | li = list(map(int, input().split()))
ans = 0
for i in range(li[0] + 1):
s = sum(list(map(int, str(i))))
if sum >= li[1] and sum <= li[2]:
ans += s
print(ans) |
s318115800 | p03478 | u907549201 | 1582419997 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 161 | li = list(map(int, input().split()))
ans = 0
for i in range(li[0] + 1):
sum = sum(list(map(int, str(i))))
if sum >= a and sum <= b:
ans += sum
print(ans) |
s787862682 | p03478 | u354618612 | 1582324272 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | 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) |
s368290017 | p03478 | u354618612 | 1582323620 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | 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) |
s722999854 | p03478 | u354618612 | 1582323584 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 133 | n,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)
|
s992587186 | p03478 | u354618612 | 1582323501 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 136 | 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) |
s591246802 | p03478 | u354618612 | 1582323468 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 278 | n,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)
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) |
s519822273 | p03478 | u354618612 | 1582323361 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 137 | n,a,b = map(int,input().split())
ans = 0
for i in range(n+1):
if a<= sun(list(map(int,list(str(i)))) <=b
ans += i
print(ans) |
s291874562 | p03478 | u354618612 | 1582323326 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | n,a,b = map(int,input().split())
ans = 0
for i in range(n+1):
if a<= sun(map(int,list(str(i))) <=b
ans += i
print(ans)
|
s583698621 | p03478 | u354618612 | 1582322258 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 132 | n,a,b = map(int,input().split())
ans = 0
for i in range(n+1):
if a<= sun(map(int,list(str(i))) <=b:
ans += i
print(ans) |
s949992987 | p03478 | u247366051 | 1582252157 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 161 | n, a, b = map(int, raw_input().split())
ans = 0
for _ in range(n + 1):
if a <= sum(map(int, list(str(_)))) <= b: # 分解、求和
ans += _
print ans |
s124913249 | p03478 | u709679133 | 1581996462 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | 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) |
s671123047 | p03478 | u182594853 | 1581653160 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 202 | n, a, b = map(int, input().split())
ans=0
for i in range(n+1):
t = str(i)
total=0
for j in range(6):
total += int(t[j])
if a <= total <= b:
ans += total
print(ans)
|
s951480579 | p03478 | u940516059 | 1581546971 | Python | Python (3.4.3) | py | Runtime Error | 16 | 3060 | 148 | 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) |
s175143890 | p03478 | u679270486 | 1581028989 | Python | Python (3.4.3) | py | Runtime Error | 29 | 3064 | 572 | n,a,b=map(int,input().split(" "))
def check(x):
sum=0
while x>0:
sum = sum + x % 10
x=int(x/10);
return sum
total=0
for i in range(n+1): #1-10 1,2,10
sum=check(i)
if sum<=b and sum>=a:
#print(i)
total=total+i
print(total)
n,a,b=map(int,input().split(" "))
def c... |
s631180820 | p03478 | u905743924 | 1580666099 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 234 | N = int(input())
A = int(input())
B = int(input())
sum_list = list(map(lambda n: sum(list(map(int, str(n)))), [n for n in range(1, N+1)]))
sum_ = 0
for i, n in enumerate(sum_list):
if n>=A and n<=B:
sum_ += i+1
print(sum_) |
s593540341 | p03478 | u840974625 | 1580606995 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 192 | n, a, b = map(int, input().split())
x = 0
for i in range(1:n+1):
q = i
w = i / 10
e = i / 100
r = i / 1000
sum = q + w + e + r
if sum >= a and sum <= b:
x += sum
print(x) |
s153038465 | p03478 | u840974625 | 1580606914 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 190 | n, a, b = map(int, input().split())
x = 0
for i in range(1:n+1):
q = i
w = i / 10
e = i / 100
r = i / 1000
sum = q + w + e + r
if sum >= a and sum <= b:
x += 1
print(x) |
s403694000 | p03478 | u622349926 | 1580601381 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 172 |
n, a, b = map(int, input().split())
n_cond = 0
for i in range(n+1):
i_str = str(i)
order_sum = map(sum, i_str)
if order_sum >= a and order_sum <= b:
n_cond += 1 |
s743540606 | p03478 | u422267382 | 1580150445 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 234 | N=int(input("N:"))
a,b=map(int,input().split())
Num=0
Num_sum=0
for number in range(1,N+1):
for num in str(number):
num=int(num)
Num+=num
if Num>=a and Num<=b:
Num_sum+=number
Num=0
print(Num_sum) |
s571708930 | p03478 | u422267382 | 1580150397 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 245 | N=int(input("N:"))
a,b=map(int,input().split())
Num=0
num_new=0
Num_sum=0
for number in range(1,N+1):
for num in str(number):
num=int(num)
Num+=num
if Num>=a and Num<=b:
Num_sum+=number
Num=0
print(Num_sum)
|
s855833315 | p03478 | u128661070 | 1580085093 | Python | Python (3.4.3) | py | Runtime Error | 31 | 3188 | 654 | def sum_digits(n):
sum = 0
while(n > 0):
sum += int(n % 10)
n = n //10
return sum
def main():
n, a, b = map(int, input().strip().split())
total = 0
for i in range(n+1):
tmp = sum_digits(n)
if (tmp >= a) & (tmp <= b):
total += tmp
print(total)
if __name__=="__main__":
... |
s370464809 | p03478 | u128661070 | 1580084825 | Python | Python (3.4.3) | py | Runtime Error | 758 | 3060 | 308 | def sum_digits(n):
sum = 0
while(n > 0):
sum += n % 10
n /= 10
return sum
def main():
n, a, b = map(int, input().strip().split())
for i in range(n+1):
tmp = sum_digits(n)
if (tmp >= a) & (tmp <= b):
total += tmp
print(total)
if __name__=="__main__":
main() |
s444354066 | p03478 | u128661070 | 1580084741 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 296 |
def sum_digits(n):
sum = 0
while(n > 0):
sum += n % 10
n /= 10
return sum
def main():
n, a, b = map(int, input())
for i in range(n+1):
tmp = sum_digits(n)
if (tmp >= a) & (tmp <= b):
total += tmp
print(total)
if __name__=="__main__":
main()
|
s330691588 | p03478 | u606043821 | 1579398668 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 328 | N,A,B = map(int,input().split())
a = 0
L =[]
for i in range(N+1):
if i <= 10:
if i<=A&i>=B:
L.append(i)
else:
a = i
M = []
while a >=10:
b = a%10
M.append(b)
a /=10
c = sum(M)
if c<=A&c>=B:
L.append(i)
print(... |
s357434587 | p03478 | u696240348 | 1579213652 | Python | PyPy3 (2.4.0) | py | Runtime Error | 168 | 38384 | 162 | n, a , b = map(int, input().split())
counter=0
for i in range(1, N+1):
sum = sum(int(x) for x in str(i))
if(a<=sum<=b):
counter+=1
print(counter) |
s255747927 | p03478 | u863044225 | 1579015408 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 152 | n,a,b=map(int,input().split())
ans=0
for i in ranpe(1,n+1):
s=0
x=i
while 0<x:
s+=x%10
x=x//10
if a<=s and s<=b:
ans+=i
print(ans)
|
s317760242 | p03478 | u863044225 | 1579015360 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 150 | n,a,b=map(int,input().split())
ans=0
for i in ranpe(1,n+1):
s=0
x=i
while 0<x:
s+=x%10
x//=10
if a<=s and s<=b:
ans+=i
print(ans) |
s366629334 | p03478 | u075492837 | 1578774703 | Python | Python (3.4.3) | py | Runtime Error | 19 | 2940 | 237 | def keta_sum(x):
sum = 0
while x%10 !=0:
sum += x%10
x = x//10
return(sum)
cnt=0
total=0
for x in range(1,N+1):
y = keta_sum(x)
if A<=y<=B:
cnt +=1
total +=x
print(total) |
s878649474 | p03478 | u620128827 | 1578757971 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | a, 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) |
s426370082 | p03478 | u747220349 | 1578654832 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 162 | l=input().split()
a,b=map(int,[l[1],l[2]])
n=len(list(l[0]))
total=0
while i in range(1,n+1):
if a<=i<=b:
total+=1
i+=1
else:
print(total) |
s971796368 | p03478 | u722117999 | 1578633145 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | def sum(N):
N=str(N)
return sum(list(map(int,N)))
t=0
n,a,b=map(int,input().split())
for i in range(n+1):
if a<=sum(i)<=b:t+=i
print(t) |
s824208262 | p03478 | u722117999 | 1578633048 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 142 | def sum(n):
n=str(n)
return sum(list(map(int,n)))
t=0
n,a,b=map(int,input().split())
for i in range(n+1):
if a<=sum(i)<=b:t+=i
print(t) |
s562100971 | p03478 | u722117999 | 1578632860 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 155 | def sum(n):
n=str(n)
return sum(list(map(int,n)))
t=0
n,a,b=map(int,input().split())
for i in range(0,n+1):
print(i)
if a<=sum(i)<=b:t+=i
print(t) |
s081400149 | p03478 | u722117999 | 1578632715 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 156 | def sum(n):
n=str(n)
return sum(list(map(int,n)))
t=0
n,a,b=map(int, input().split())
for i in range(0,n+1):
print(i)
if a<=sum(i)<=b:t+=i
print(t) |
s618099009 | p03478 | u741279737 | 1578167815 | Python | PyPy3 (2.4.0) | py | Runtime Error | 184 | 38384 | 220 | N = int(input())
A = int(input())
B = int(input())
#x = sum(l)
array = 0
for i in range(N+1):
l =[int(x) for x in list(str(i))]
f = sum(l)
if f >= A and f <= B:
array = array + i
print(array) |
s911774732 | p03478 | u189385406 | 1578010238 | Python | Python (3.4.3) | py | Runtime Error | 16 | 2940 | 70 | N,A,B=map(int,input().split())
S = list(range(N+1).split(''))
print(S) |
s213150386 | p03478 | u431981421 | 1577481744 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 275 | li = list(map(int,input().split()))
a = li[0]
b = li[1]
c = li[2]
list = []
for i in range(a + 1):
ans = 0
tmp = i
while(i >= 1):
ans += i % 10
i = math.floor(i / 10)
if b <= ans <= c:
list.append(tmp)
data = 0
for e in list:
data += e
print(data) |
s410025779 | p03478 | u431981421 | 1577481056 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 242 | li = list(map(int,input().split()))
a = li[0]
b = li[1]
c = li[2]
list = []
for i in a + 1:
ans = 0
while(i != 0):
ans += i % 10
i / 10
if b <= ans <= c:
list.append(ans)
data = 0
for e in list:
data += e
print(data) |
s057237448 | p03478 | u487594898 | 1577425753 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 169 | x,y,z = map(int,input().split())
count = 0
for i in range(1:x)
LIST = [int(x) for x in list(str(i))]
if y <sum(LIST) <z :
count +=1
print(count) |
s960693722 | p03478 | u431981421 | 1577411255 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 248 | list = []
for i in range(a + 1):
if i < 10:
if b <= i <= c:
list.append(i)
else:
d = [int(i) for c in str(i)]
e = 0
for j in d:
e += j
if b <= e <= c:
list.append(i)
k = 0
for t in list:
k += t
print(k) |
s556999564 | p03478 | u431981421 | 1577411102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 314 | li = list(map(int,input().split()))
a = li[0]
b = li[1]
c = li[2]
list = []
for i in range(a + 1)
if i < 10:
if b <= i <= c:
list.append(i)
else:
d = [int(i) for c in str(i)]
e = 0
for j in d:
e += j
if b <= e <= c:
list.append(i)
k = 0
for t in list:
k += t
print(k) |
s605627302 | p03478 | u648679668 | 1577405027 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 144 | n, a, b = map(int, input().split())
ans = 0
for i in range(n+1):
if a <= sum(list(map(int, list(str(i))))) <= b:
ans += i
print(ans) |
s019241113 | p03478 | u352069018 | 1577134307 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 156 | n = int(input())
x = input()
a,b = [int(i) for i in x.split()]
s = 0
for x in range(1,n+1):
if a <= sum([int(i) for i in str(x)]) <= b:
s+= x
print(s) |
s052395336 | p03478 | u311669106 | 1576700211 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 109 | n,a,b=map(int,input().split())
for k in n+1:
x=k//10
y=k-x*10
if a<=x+y<=b:
i+=1
print(i) |
s692092952 | p03478 | u311669106 | 1576700195 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 109 | n,a,b=map(int,input().split())
for k in n+1:
x=n//10
y=n-x*10
if a<=x+y<=b:
i+=1
print(i) |
s312871116 | p03478 | u566619532 | 1576601788 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2692 | 1234 | #-*- coding: utf-8 -*-#
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
e = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの各要素をstr型に変換
e_num... |
s007507757 | p03478 | u566619532 | 1576601755 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3316 | 1234 | #-*- coding: utf-8 -*-#
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
e = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの各要素をstr型に変換
e_num... |
s854650090 | p03478 | u566619532 | 1576599586 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1239 | #-*- coding: utf-8 -*-#
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換 ... |
s363537719 | p03478 | u566619532 | 1576452856 | Python | Python (2.7.6) | py | Runtime Error | 10 | 2568 | 1214 | test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i in range(len_x):
... |
s627609166 | p03478 | u279493135 | 1576368871 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | N, A, B = input().strip().split()
ans = 0
for i in range(1, N+1):
if A <= sum(map(int, list(str(i)))) <= B:
ans += i
print(ans)
|
s105320136 | p03478 | u680183386 | 1576335141 | 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+1):
f = sum([int(x) for x in str(i)])
if a <= f && f <= b:
ans+=i
print(ans) |
s896356487 | p03478 | u914529932 | 1575508166 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 595 | dbflag="ccc.txt"
def debug(*args):
if ""!=dbflag: print(*args)
if ""!=dbflag: _INDATA=open(dbflag)
def readline():
if ""!=dbflag:return _INDATA.readline()
else: return input()
result = 0
N,A,B = map(int, readline().split())
for i5 in range(0,2):
for i4 in range(0,10):
for i3 in range(0,10):
for ... |
s101320606 | p03478 | u417063616 | 1575485577 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 225 | n,a,b = (int(input()) for i in range(3))
t=0
for i in range(1,n+1):
orign=i
total = 0
for ii in range(len(str(i))):
total += i%10
i=int(i/10)
if total>=a and total<=b:
t+=orign
print(t) |
s998477703 | p03478 | u417063616 | 1575485496 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3056 | 225 | n,a,b = [int(input()) for i in range(3)]
t=0
for i in range(1,n+1):
orign=i
total = 0
for ii in range(len(str(i))):
total += i%10
i=int(i/10)
if total>=a and total<=b:
t+=orign
print(t) |
s480625279 | p03478 | u417063616 | 1575485323 | Python | PyPy3 (2.4.0) | py | Runtime Error | 166 | 38384 | 225 | n,a,b = [int(input()) for i in range(3)]
t=0
for i in range(1,n+1):
orign=i
total = 0
for ii in range(len(str(i))):
total += i%10
i=int(i/10)
if total>=a and total<=b:
t+=orign
print(t) |
s257811968 | p03478 | u771756419 | 1575240301 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 221 | N = int(input())
a = list(map(int,input().split()))
count = 0
A = 0
B = 0
while count < N+1 and len(a) >0:
m = max(a)
A += m
a.remove(m)
if len(a) > 0:
m = max(a)
B += m
a.remove(m)
count +=1
print(A - B) |
s130387832 | p03478 | u151305655 | 1574913816 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 169 | n, a, b = (int(i) for i in input().split())
s=0
h=0
for i in range(1,n):
j=0
s=0
while j<5:
s += i%10
i = i%10
if s>=a && s<=b:
h += s
print(h) |
s157887551 | p03478 | u871867619 | 1574709456 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 318 | n = int(input())
a = int(input())
b = int(input())
def calc_sum(n):
dr = 0
while(True):
dr += n % 10
n = n // 10
if n == 0:
break
return dr
count = 0
for i in range(1, n + 1):
sum = calc_sum(i)
if (a <= sum) and (b >= sum):
count += i
print(count)
|
s087714977 | p03478 | u871867619 | 1574708819 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 354 | n = int(input())
a = int(input())
b = int(input())
def calc_sum(n):
count = 0
while(True):
dr = n % 10
n = n // 10
if n == 0:
break
else:
count += dr
return count
count = 0
for i in range(1, n + 1):
if (a <= calc_sum(i)) and (b >= calc_sum(i)):
... |
s659784352 | p03478 | u871867619 | 1574708387 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 179 | n = int(input())
a = int(input())
b = int(input())
count = 0
while(True):
dr = n % 10
n = n // 10
if n == 0:
break
else:
count += dr
print(count) |
s523933986 | p03478 | u798731634 | 1574362895 | Python | Python (3.4.3) | py | Runtime Error | 32 | 2940 | 134 | 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:
ams += i
print(ans) |
s225329152 | p03478 | u566619532 | 1574275277 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 1215 | # -*- coding: utf-8 -*-
test = input()
a, b, c = test.split() # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行の和がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i in range(... |
s289439862 | p03478 | u566619532 | 1574275239 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3316 | 1230 | # -*- coding: utf-8 -*-
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行の和がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i... |
s755571808 | p03478 | u566619532 | 1574275125 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 1232 | # -*- coding: utf-8 -*-
test = input()
a, b, c = test.split() # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行の和がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i in range(... |
s038339571 | p03478 | u566619532 | 1574274455 | Python | Python (2.7.6) | py | Runtime Error | 11 | 2692 | 1223 | # -*- coding: utf-8 -*-
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行の和がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i... |
s127264760 | p03478 | u566619532 | 1574274304 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3316 | 1227 | # -*- coding: utf-8 -*-
test = input()
a, b, c = map(int, test.split()) # 変数a,b,cにそれぞれN、A、Bをint型にして入力する
x = []
for i in range(1,a+1): # list型の変数xに1からNまでの要素を入れる
x.append(i)
len_x = len(x) # リスト型の変数xの要素数を獲得
d = 0 # リストの各行の和を入れるための変数
f = [] # 各行の和がA以上B以下の要素を入れるための変数
x = map(str, x) # リストxの書く要素をstr型に変換
for i... |
s914176785 | p03478 | u376783185 | 1574195226 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 263 | N = int(input())
A = int(input())
B = int(input())
def sumEachDigit(n):
s = str(n)
array = list(map(int, s))
return sum(array)
res = 0
for i in range(1, N+1):
sum_i = sumEachDigit(i)
if sum_i >= A and sum_i <= B:
res += i
print(res) |
s917528403 | p03478 | u972658925 | 1573671685 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 167 | N,A,B = map(int, input().split())
num = 0
for i in range(1,N+1):
lst = list(str(i))
s = sum(list(map(int,lst))
if A <= s <= B:
num += i
print(num) |
s469268037 | p03478 | u663438907 | 1573616058 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 220 | N, A, B = map(int, input().split())
l = []
for i in range(N):
value = 0
for j in range(len(list(str(i+1)))):
value += int(list(str(i+1)))[j]
if A <= value and value <= B:
l.append(value)
print(sum(l)) |
s070306293 | p03478 | u633548583 | 1572918461 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 130 | 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)
|
s140894121 | p03478 | u633548583 | 1572918301 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 117 | n,a,b=map(int,input().split())
ans=0
for i in range(n+1):
if a<=sum(map(int,str(i))<=b:
ans+=i
print(ans) |
s536268204 | p03478 | u022269787 | 1571973342 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 139 | N, A, B = map(int, input().split())
num
for i in range(N+1):
if A <= sum(list(map(int, list(str(i))))) <= B:
num += i
print(num)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.