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
s707506980
p03478
u450904670
1558237976
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
n, a, b = (int(i) for i in input().split()) count = 0 for i in range(1, n): res = sum([int(j) for j in str(i)]) if(a <= res && res <= b): count = count + 1 print(count)
s896316505
p03478
u450904670
1558237935
Python
Python (3.4.3)
py
Runtime Error
17
2940
183
n, a, b = (int(i) for i in input().split()) count = 0 for i in range(1, n): res = sum([int(j) for j in str(i)]) if(a <= res && res <= b): count = count + 1 print(count)
s394296861
p03478
u450904670
1558237901
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
n, a, b = (int(i) for i in input().split()) count = 0 for i in range(1, n): res = sum([int(j) for j in str(i)]) if(a <= res && res <= b): count = count + 1 print(count)
s745368926
p03478
u450904670
1558237846
Python
Python (3.4.3)
py
Runtime Error
17
2940
184
n, a, b = (int(i) for i in input().split()) count = 0 for i in range(1, n): res = sum([int(j) for j in str(n)]) if(a <= res && res <= b): count = count + 1 print(count)
s811860470
p03478
u796789068
1557886755
Python
Python (3.4.3)
py
Runtime Error
21
3060
332
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...
s290332681
p03478
u796789068
1557886049
Python
Python (3.4.3)
py
Runtime Error
17
2940
317
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
s394819786
p03478
u796789068
1557885971
Python
Python (3.4.3)
py
Runtime Error
17
2940
317
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+=0 else: i1=i//10 i2=i%10 j=i1+i2 if j>=A and j<=B: n+=0
s724790765
p03478
u796789068
1557885899
Python
Python (3.4.3)
py
Runtime Error
17
2940
318
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+=0 else: i1=i//10 i2=i%10 j=i1+i2 if j>=A and j<=B: n+=0
s358987126
p03478
u796789068
1557885522
Python
Python (3.4.3)
py
Runtime Error
17
2940
134
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
s272015611
p03478
u416758623
1557611546
Python
Python (3.4.3)
py
Runtime Error
17
3060
186
n,a,b = map(int, input().split()) ans = 0 def sum(k): s = 0 for j in range(len(s)): s+=int(k[j]) return s for i in range(1,n+1): if a<=sum(str(i))<=b: ans+=i print(ans)
s418863961
p03478
u643912307
1557516760
Python
Python (3.4.3)
py
Runtime Error
18
2940
140
#天秤 a,b,c,d=map(int,input().split()) l=a+b r=c+d if l==r: print("Balanced") else: if l>r: print("Left") else: print("Right")
s704617305
p03478
u643912307
1557516727
Python
Python (3.4.3)
py
Runtime Error
19
2940
140
#天秤 a,b,c,d=map(int,input().split()) l=a+b r=c+d if l==r: print("Balanced") else: if l>r: print("Left") else: print("Right")
s749854323
p03478
u643912307
1557509521
Python
Python (3.4.3)
py
Runtime Error
17
3060
337
#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)
s825551036
p03478
u204800924
1557181443
Python
Python (3.4.3)
py
Runtime Error
17
2940
213
N, A, B = map(int, input().split()) total = 0 for n in range(1,N+1) sum = 0 q = n while q != 0: sum += (q%10) q = q//10 if (A<=sum) and (sum<=B): total += n print(total)
s323651880
p03478
u096983897
1556971160
Python
Python (3.4.3)
py
Runtime Error
17
2940
243
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 && sum<=b: res += sum; print(res)
s775813197
p03478
u166621202
1556939229
Python
Python (3.4.3)
py
Runtime Error
17
3060
162
N,A,B=map(int,input().split()) ans = 0 for i in range(1,N+1): sum = 0 while j !=0: sum += j % 10 j = j//10 if A <= sum <= B: ans += i print(ans)
s386248068
p03478
u518042385
1556763956
Python
Python (3.4.3)
py
Runtime Error
18
2940
150
n,a,b=map(int,input().split()) c=0 for i in range(1,n+1): w=str(i) d for j in range(len(w)): d+=int(w[j]) if a<=d<=b: c+=1 print(c)
s804668721
p03478
u845937249
1556678853
Python
Python (3.4.3)
py
Runtime Error
17
3188
417
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...
s604021190
p03478
u845937249
1556678734
Python
Python (3.4.3)
py
Runtime Error
17
3064
417
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...
s328633765
p03478
u325282913
1556595524
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)
s318694882
p03478
u325282913
1556595359
Python
Python (3.4.3)
py
Runtime Error
18
3068
185
a, b, c = map(int, input().split()) N = [] 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)
s820528424
p03478
u300968187
1556569230
Python
Python (3.4.3)
py
Runtime Error
17
2940
352
#include<stdio.h> int digit_sum(int num); int main() { int n, a, b, cnt, i, temp; cnt = 0; scanf("%d%d%d", &n, &a, &b); for (i = 1; i <= n; i++) { temp = digit_sum(i); if (a <= temp && temp <= b) cnt += i; } printf("%d", cnt); return 0; } int digit_sum(int num) { if (num > 9) return num % 10 + digit_sum...
s599865835
p03478
u077291787
1555768119
Python
Python (3.4.3)
py
Runtime Error
17
2940
258
# ABC083B - Some Sums import sys n, a, b = list(map(int, stdin.readline().split())) answer = 0 for i in range(1, n + 1): total = 0 while i > 9: total += i % 10 i //= 10 if a <= i and i <= b: answer += total print(answer)
s508590996
p03478
u419449306
1555381500
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)
s264955614
p03478
u419449306
1555380524
Python
Python (3.4.3)
py
Runtime Error
17
3060
239
N = int(raw_input()) A = int(raw_input()) B = int(raw_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)
s145370373
p03478
u914330401
1555279892
Python
Python (3.4.3)
py
Runtime Error
36
3060
218
N, A, B = input().split() A = int(A) B = int(B) k_sum = 0 ans = 0 for j in range(1, int(N)+1): j = str(j) for i in range(len(j)): k_sum += int(j[i]) if k_sum >= A and k_sum <= B: ans += int[j] print(j)
s455220373
p03478
u903959844
1555105356
Python
Python (3.4.3)
py
Runtime Error
17
3060
336
listNAB = input().split() listNABint = [int(s) for s in A] def Placesum(x): y = str(x) counter = 0 for i in range(len(y)): counter += int(y[i]) return counter sumcounter = 0 for i in range(N): if A <= Placesum(i+1) & Placesum(i+1) <= B: sumcounter += i+1 print(sumcounter) p...
s606181373
p03478
u612481724
1554930834
Python
Python (3.4.3)
py
Runtime Error
17
3060
300
# -*- coding: utf-8 -*- # Input list = [] for _ in range(3): list += [int(input())] total = 0 for ii in range(1, list[0] + 1): sum = 0 tmp = ii while tmp > 0: sum += tmp % 10 tmp = tmp // 10 if sum >= list[1] and sum <= list[2]: total += ii print(total)
s220297099
p03478
u633355062
1554393668
Python
Python (3.4.3)
py
Runtime Error
18
2940
224
n, a, b = map(int, input().split()) ans = 0 for num in range(1, n+1): bits = list() while num > 0: tmp = num % 10 bits.append(tmp) num -= tmp num /= 10 if a <= bits.sum() <= b: ans += 1 print(ans)
s873290299
p03478
u633355062
1554393602
Python
Python (3.4.3)
py
Runtime Error
17
3060
210
n, a, b = map(int, input().split()) ans = 0 for num in range(1, n+1): bits = list() while num > 0: tmp = num % 10 bits.append(tmp) num //= 10 if a <= bits.sum() <= b: ans += 1 print(ans)
s199035995
p03478
u103393963
1554210596
Python
Python (3.4.3)
py
Runtime Error
18
3064
310
N = int(input()) A = int(input()) B = int(input()) sum = 0 for a in range(N+1): a = str(a) a_list = list(a) a_list_i = [int(a) for a in a_list] a_list_i_sum = 0 for b in a_list_i: a_list_i_sum = a_list_i_sum + b if a_list_i_sum >=A and a_list_i_sum <= B: sum = sum + int(a) print(sum)
s468391290
p03478
u859897687
1554099385
Python
Python (3.4.3)
py
Runtime Error
17
3060
167
n,a,b=map(int,input()) ans=0 for i in range(n): t=0 i1=i for j in range(i): t+=i1%10 i1//10 if i1==0: break if a<=t<=b: ans+=i print(ans)
s233279985
p03478
u005570675
1554058737
Python
Python (3.4.3)
py
Runtime Error
28
3060
193
def wa(n,a,b): hoge=0 for i in range(1,n+1): s=str(i) for ii in s: hoge+=int(ii) if a<=hoge<=b: ans+=i return ans n,a,b=map(int,input().split()) print(wa(n,a,b))
s833635451
p03478
u005570675
1554058487
Python
Python (3.4.3)
py
Runtime Error
18
3060
180
def wa(n,a,b): for i in range(1,n+1): s=str(i) for ii in s: ss+=int(ii) if a<=ss<=b: ans+=i return ans n,a,b=map(int,input().split()) print(wa(n,a,b))
s681610435
p03478
u005570675
1554058404
Python
Python (3.4.3)
py
Runtime Error
17
3064
180
def wa(n,a,b): for i in range(1,n+1): s=str(i) for ii in s: ss+=int(ii) if a=<ss=<b: ans+=i return ans n,a,b=map(int,input().split()) print(wa(n,a,b))
s297615686
p03478
u836467497
1553866216
Python
Python (3.4.3)
py
Runtime Error
17
2940
226
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): #inputList = [int(c) for c in str(n)] #if A <= sum(inputList) <= B: # outValue += n print(outValue)
s207559904
p03478
u836467497
1553866189
Python
Python (3.4.3)
py
Runtime Error
18
2940
225
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [int(c) for c in str(n)] #if A <= sum(inputList) <= B: # outValue += n print(outValue)
s019366659
p03478
u836467497
1553866074
Python
Python (3.4.3)
py
Runtime Error
18
2940
242
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [int(c) for c in str(n)] if A <= sum(inputList) and sum(inputList) <= B: outValue += n print(outValue)
s359346184
p03478
u836467497
1553865634
Python
Python (3.4.3)
py
Runtime Error
17
2940
256
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [] for c in str(n): inputList.append(int(c)) if A <= sum(inputList) <= B: outValue += n print(outValue)
s764427435
p03478
u836467497
1553810865
Python
Python (3.4.3)
py
Runtime Error
18
2940
224
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [int(c) for c in str(n)] if A <= sum(inputList) <= B: outValue += n print(outValue)
s598667744
p03478
u836467497
1553810770
Python
Python (3.4.3)
py
Runtime Error
18
2940
223
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [int(c) for c in str(n)] if A <= sum(inputList) <= B: outValue += n print(outValue)
s099174760
p03478
u836467497
1553810699
Python
Python (3.4.3)
py
Runtime Error
17
3060
222
# -*- coding: utf-8 -*- N = int(input()) A = int(input()) B = int(input()) outValue = 0 for n in range(N+1): inputList = [int(c) for c in str(n)] if A <= sum(inputList) <= B: outValue += n print(outValue)
s728531498
p03478
u020812754
1553715085
Python
Python (3.4.3)
py
Runtime Error
17
2940
146
#coding:utf-8 N, A, B = input().split() ans = 0 for i in range(N+1): if A <= sum(list([int(x) for x in str(i)])) <= B: ans += i print(ans)
s967545172
p03478
u807889603
1553192340
Python
Python (3.4.3)
py
Runtime Error
33
3064
310
n, a, b = map(int,input().split()) ans = 0 for i in range(1,n+1): s = sum(map(int,list(str(i)))) if a <= s and s <= b: ans += i print(ans) n, a, b = map(int,input().split()) ans = 0 for i in range(1,n+1): s = sum(map(int,list(str(i)))) if a <= s and s <= b: ans += i print(ans)
s111794399
p03478
u782654209
1553132476
Python
Python (3.4.3)
py
Runtime Error
17
2940
8
100 4 16
s052636531
p03478
u623819879
1553119975
Python
PyPy3 (2.4.0)
py
Runtime Error
171
38256
162
n,a,b=map(int,input().split()) ans=0 for i in range(1,n+1): k=str(i) keta=0 for j in range(len(k)): keta+=k[j] if k>=a and k<=b: ans+=i print(ans)
s707233391
p03478
u900688325
1553039816
Python
Python (3.4.3)
py
Runtime Error
40
3060
211
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(1,N+1): for j in str(i): counter[i+1] += int(j) if A<= counter[i+1] <=B : ans += i print(ans)
s461841326
p03478
u900688325
1553039688
Python
Python (3.4.3)
py
Runtime Error
36
3060
224
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(1,N+1): #st = str(i) for j in str(i): counter[i] += int(j) if A<= counter[i] <=B : ans += i print(ans)
s220140844
p03478
u900688325
1553039491
Python
Python (3.4.3)
py
Runtime Error
18
3060
223
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(1,N+1): st = str(i) for j in st: counter[i] += int(st[j]) if A<= counter[i] <=B : ans += i print(ans)
s510422811
p03478
u900688325
1553039230
Python
Python (3.4.3)
py
Runtime Error
18
2940
181
N, A, B = map(int, input().split()) ans = 0 for i in range(1, N+1): num_sum = 0 for j in str(i): num_sum += j if A<= num_sum <= B: ans += i print(ans)
s635737530
p03478
u900688325
1553038979
Python
Python (3.4.3)
py
Runtime Error
41
3060
249
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(1,N+1): st = str(i) for j in range(len(st)): counter[i] = counter[i] + int(st[j]) if A<=counter[i]<=B : ans = ans + i print(ans)
s537086303
p03478
u900688325
1553038794
Python
Python (3.4.3)
py
Runtime Error
41
3060
247
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N+1): st = str(i) for j in range(len(st)): counter[i] = counter[i] + int(st[j]) if A<=counter[i]<=B : ans = ans + i print(ans)
s875705404
p03478
u900688325
1553038652
Python
Python (3.4.3)
py
Runtime Error
18
3060
242
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N+1): st = str(i) for j in range(len(st)): counter[i] = counter[i] + st[j] if A<=counter[i]<=B : ans = ans + i print(ans)
s123858144
p03478
u900688325
1553038523
Python
Python (3.4.3)
py
Runtime Error
18
3060
259
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N+1): st = str(i) for j in range(len(st)+1): counter[i] = counter[i] + st[j] if counter[i]>=A and counter[i]<=B : ans = ans + i print(ans)
s556879554
p03478
u900688325
1553038492
Python
Python (3.4.3)
py
Runtime Error
17
3060
257
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N+1): st = str(i) for j in range(len(st)): counter[i] = counter[i] + st[j] if counter[i]>=A and counter[i]<=B : ans = ans + i print(ans)
s735391553
p03478
u900688325
1553038376
Python
Python (3.4.3)
py
Runtime Error
18
3060
255
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): st = str(i) for j in range(len(st)): counter[i] = counter[i] + st[j] if counter[i]>=A and counter[i]<=B : ans = ans + i print(ans)
s915603525
p03478
u900688325
1553038282
Python
Python (3.4.3)
py
Runtime Error
17
3060
266
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(string)): counter[i] = counter[i] + string[j] if counter[i]>=A and counter[i]<=B: ans = ans + i print(ans)
s865958957
p03478
u900688325
1553038069
Python
Python (3.4.3)
py
Runtime Error
18
3060
262
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(str)): counter[i] = counter[i] + string[j] if counter[i]>=A and counter[i]<=B: ans = ans + i print(ans)
s045831565
p03478
u900688325
1553037971
Python
Python (3.4.3)
py
Runtime Error
18
3060
263
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(str)): counter[i] = counter[i] + string[j] if(counter[i]>=A and counter[i]<=B): ans = ans + i print(ans)
s369887865
p03478
u900688325
1553037595
Python
Python (3.4.3)
py
Runtime Error
19
3064
246
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(str)): counter[i] += string[j] if(counter[i]>=A and counter[i]<=B): ans += i print(ans)
s883416284
p03478
u900688325
1553037500
Python
Python (3.4.3)
py
Runtime Error
18
3060
265
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(string)): counter[i] += string[j] for i in range(N): if(counter[i]<=B and counter[i]>=A): ans += i print(ans)
s969870653
p03478
u900688325
1553037449
Python
Python (3.4.3)
py
Runtime Error
17
3060
271
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(string)): counter[i] += string[j] for i in range(N): if(counter[i]<=B and counter[i]>=A): ans += i print(ans)
s170752011
p03478
u900688325
1553037351
Python
Python (3.4.3)
py
Runtime Error
18
2940
264
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(string)): counter[i] += string[j] for i in range(N): if(counter[i]>=A && counter[i]<=B): ans += i print(ans)
s576642087
p03478
u900688325
1553037208
Python
Python (3.4.3)
py
Runtime Error
17
2940
270
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(string)): counter[i] += string[j] for i in range(N): if(counter[i]<=B && counter[i]>=A): ans += i print(ans)
s734161602
p03478
u900688325
1553036873
Python
Python (3.4.3)
py
Runtime Error
17
2940
243
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(str)): counter[i] += string[j] if(counter[i]>=A && counter[i]<=B): ans += i print(ans)
s675531762
p03478
u900688325
1553036835
Python
Python (3.4.3)
py
Runtime Error
17
2940
245
N, A, B = map(int, input().split()) counter = [0 for _ in range(N)] ans = 0 for i in range(N): string = str(i) for j in range(len(str)): counter[i] += string[j] if(counter[i]>=A && counter[i]<=B): ans += i print(ans)
s218269905
p03478
u807772568
1552800960
Python
Python (3.4.3)
py
Runtime Error
18
3060
196
n,a,b = map(int,input()) su = 0 co = 0 for i in range(1,n+1): ii = list(map(int,list(str(i)))) for j in range(len(ii)): co += ii[j] if co <= b and co >= a: su += 1 co = 0 print(su)
s770845779
p03478
u305965165
1552680439
Python
Python (3.4.3)
py
Runtime Error
17
3060
211
n, a, b = (int(i) for i in input().split()) l = [] for i in range(n+1): s = str(i) sum_ = 0 for x in s: sum_ += int(X) if a <= sum_ and sum_ <= b: l.append(i) print(sum(l))
s795548939
p03478
u260040951
1552614729
Python
Python (3.4.3)
py
Runtime Error
17
3064
250
a = int(input()) b = int(input()) c = int(input()) a2 = 0 l = [] while a > 0: a1 = a while a1 > 1: l.append(int(a1 % 10)) a1 = a1 / 10 if sum(l) >= b and sum(l) <= c: a2 = a2 + a l = [] a = a - 1 print(a2)
s612509375
p03478
u393512980
1552452206
Python
Python (3.4.3)
py
Runtime Error
18
2940
161
a, b, c = map(int, input().split()) ans = 0 for i in range(n + 1): x = 0 while i > 0: x += i % 10 i //= 10 if A <= x <= B: ans += 1 print(ans)
s586388281
p03478
u393512980
1552452103
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
a, b, c = map(int, input().split()) ans = 0 for i in range(n + 1): x = sum(list(str(i))) if A <= x <= B: ans += 1 print(ans)
s743515844
p03478
u865413330
1552291317
Python
Python (3.4.3)
py
Runtime Error
18
2940
190
k, s = map(int, input().split()) count = 0 for i in range(k+1): for j in range(k+1): for l in range(k+1): if i + j + l == s: count += 1 print(count)
s695869632
p03478
u235905557
1551471664
Python
Python (3.4.3)
py
Runtime Error
17
2940
120
total = 0 for i in range(0, N): t = sum(map(int, list(str(i)))) if A <= t <= B: total += t print (total)
s728140249
p03478
u655048024
1551443615
Python
Python (3.4.3)
py
Runtime Error
17
3060
213
n, a, b = map(int, input().split(),input.split()) counter = 0 for i in range(n): wa = 0 for j in range(4): k = i / 10**j m = k % 10 wa += m if (a <= m)and(m <= b): counter += 1 print(counter)
s253020046
p03478
u815659544
1551216688
Python
Python (3.4.3)
py
Runtime Error
17
3060
164
n,a,b = map(int, input().split()) cursum = 0 for n in range(1, l[0]+1): x = sum(map(int, str(n))) if a <= x and x <= b: cursum += n print(cursum)
s024480264
p03478
u815659544
1551216550
Python
Python (3.4.3)
py
Runtime Error
17
2940
166
l = list(map(int, input().split())) cursum = 0 for n in range(1, l[0]+1): x = sum(map(int, str(n))) if a <= x and x <= b: cursum += n print(cursum)
s301358251
p03478
u350049649
1550725598
Python
Python (3.4.3)
py
Runtime Error
17
2940
190
N,A,B=map(int, input().split()) ans=0 def my_sum(x): ret=0 for j in range(4): ret+=x%10 x=x//10 return ret for i in range(N+1): if A<=my_sum(i)<==B: ans+=1 print(ans)
s492699019
p03478
u401487574
1550524696
Python
Python (3.4.3)
py
Runtime Error
17
3064
280
def sumC(x): s = x//10 s1 = (x-s)//100 s2 = (x-s-s1*10)//1000 s3 = (x-s-s1*10-s2*100)//10000 s4 = (x-s-s1*10-s2*100-s3*1000)//100000 return(s+s1+s2+s+3+s4) n,a,b = map(int,input().split) ans = 0 for i in range(1,n+1): if a<= sumC(i) <= b: ans += i print(ans)
s301640690
p03478
u397563544
1549863263
Python
Python (3.4.3)
py
Runtime Error
18
2940
137
n,a,b = 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)
s488636477
p03478
u686283589
1549764906
Python
Python (3.4.3)
py
Runtime Error
17
3060
315
if __name__ == '__main__': a = int(input()) b = int(input()) c = int(input()) x = int(input()) count = 0 for ia in range(a+1): for ib in range(b+1): for ic in range(c+1): if 500*ia+100*ib+50*ic == x: count = count+1 print(count)
s646449877
p03478
u850157059
1548882319
Python
Python (3.4.3)
py
Runtime Error
19
3064
298
n = int(input("N=")) a = int(input("A=")) b = int(input("B=")) def findsum(n): mysum = int(0) while(n > 0): mysum += int(n % 10) n /= int(10) return mysum result = 0 for i in range(0,n+1): if a <= findsum(i) and findsum(i) <= b: result += i print(result)
s003076290
p03478
u850157059
1548882290
Python
Python (3.4.3)
py
Runtime Error
18
3064
298
n = int(input("N=")) a = int(input("A=")) b = int(input("B=")) def findsum(n): mysum = int(0) while(n > 0): mysum += int(n % 10) n /= int(10) return mysum result = 0 for i in range(0,n+1): if a <= findsum(i) and findsum(i) <= b: result += i print(result)
s537679425
p03478
u850157059
1548881781
Python
Python (3.4.3)
py
Runtime Error
19
3064
297
n = int(input("N=")) a = int(input("A=")) b = int(input("B=")) def findsum(n): mysum = int(0) while(n != 0): mysum += int(n % 10) n /= int(10) return mysum result = 0 for i in range(0,n): if a <= findsum(i) and findsum(i) <= b: result += i print(result)
s354743823
p03478
u174394352
1548827402
Python
PyPy3 (2.4.0)
py
Runtime Error
182
38512
134
n,a,b=map(int,input().split()) ans=0 for i in range(1,N+1): s=0 for j in str(i): s+=int(j) if a<=s<=b: ans+=1 print(ans)
s778282934
p03478
u580301039
1548182567
Python
Python (3.4.3)
py
Runtime Error
19
3316
213
n,a,b=map(int,input().split()) c=[i+1 for i in range(n)] e=0 for i in range(n): d[i]=c[i]%10+(c[i]//10)%10+(c[i]//100)%10+(c[i]//1000)%10+(c[i]//10000)%10 if d[i]>=a and d[i]<=b: e+=c[i] print(e)
s387586765
p03478
u580301039
1548182504
Python
Python (3.4.3)
py
Runtime Error
19
3316
239
n,a,b=map(int,input().split()) c=[i+1 for i in range(n)] e=0 for i in range(n): d[i]=c[i]%10+(c[i]//10)%10+(c[i]//100)%10+(c[i]//1000)%10+(c[i]//10000)%10 if d[i]>=a and d[i]<=b: e+=c[i] print(c[i],e) print(e)
s130575093
p03478
u817523595
1547962724
Python
Python (3.4.3)
py
Runtime Error
18
2940
922
#include <iostream> #include <algorithm> #include <string> #include <cmath> #include <map> #include <vector> #define REP(i,n) for(int i=0;i<(int)n;i++) #define REP1(j,n) for(int j=0;j<(int)n;j++) #define REPD(i,n) for(int i=n;i>=0;i--) #define REPD1(j,n) for(int j=n;j=>0;j--) #define REPS(i,n) for(int i=1;i<=(int)n;i+...
s323155443
p03478
u070449185
1547710244
Python
Python (3.4.3)
py
Runtime Error
18
3064
298
N = int(input()) A = int(input()) B = int(input()) total = 0 for i in range(1,N+1): flag = True res = 0 j = i while(flag): res = res + j%10 j = int(j/10) if(j==0): flag = False if(A<=res & res<=B): total = total + i print(total)
s739505165
p03478
u785578220
1547160214
Python
Python (3.4.3)
py
Runtime Error
17
2940
430
#include<iostream> using namespace std; int findN(int n){ int sum = 0; while(n>0){ sum+=n%10; n/=10; } return sum; } int main(){ int N,A,B; cin >> N >> A >>B; int total = 0; for(int i = 1; i<=N;++i){ int sum = findN(i); if(sum>= A && sum<=B){ ...
s826338139
p03478
u595893956
1546878211
Python
Python (3.4.3)
py
Runtime Error
17
2940
154
n,a,b=map(int,input().split()) ret=0 for i in range(n): s=str(i) c=list(map(int,list(s))) cnt=sum(c) if cnt>=a && cnt<=b: ret+=cnt print(ret)
s106637106
p03478
u010668949
1546111016
Python
Python (3.4.3)
py
Runtime Error
19
3064
1015
#入力 N = int(input()) A = int(input()) B = int(input()) #Nの範囲内の数値をリストに格納 N_list = list(range(1, N+1)) #条件に合うNの値を格納するリストを作成 N_match = [] #以下の処理をNの範囲で繰り返す for n in N_list: #最後の処理(※)のためにnを別の値に代入しておく i = n #各桁の数値を求める #余りを格納するリストを作成 R_list = [] while True: #1の位の数値を算出しリストに順に格納 ...
s912426197
p03478
u919378776
1545880450
Python
Python (3.4.3)
py
Runtime Error
18
3060
239
n,a,b = (int(input()) for i in range(3)) ans = 0 count = 0 for i in range(n+1): j = i ans = 0 while(i is not 0): ans = ans + i%10 i = int(i/10) if ans >= a and ans <= b: count = count +j print(count)
s621777768
p03478
u322529408
1544307021
Python
Python (3.4.3)
py
Runtime Error
19
3060
275
N,a,b = map(int,[input() for _ in range(3)]) total= 0 ans = 0 for i in range(1,N+1): st_i = str(i) for j in range(4): try: total += int(st_i[j]) except: pass if a <= total <= b: ans += i total = 0 print(ans)
s073143782
p03478
u322529408
1544306919
Python
Python (3.4.3)
py
Runtime Error
18
3060
271
b = map(int,[input() for _ in range(3)]) total= 0 ans = 0 for i in range(1,N+1): st_i = str(i) for j in range(4): try: total += int(st_i[j]) except: pass if a <= total <= b: ans += i total = 0 print(ans)
s765893050
p03478
u625428807
1544211394
Python
Python (3.4.3)
py
Runtime Error
18
2940
132
n,a,b = map(int, input().split()) ans = 0 for i in range(n+1): if a <= sum(list(str(i))) <= b: ans += i print(ans)
s274693212
p03478
u023229441
1544169295
Python
Python (3.4.3)
py
Runtime Error
18
3060
168
n,a,b=map(int,input().split()) A=[] for i in range(1,n+1): m=0 for j in range(len(str(i))): m+=str(i)[j] else: if a<=m<=b: A.append(i) print(sum(A))
s007931514
p03478
u893048163
1543988193
Python
Python (3.4.3)
py
Runtime Error
19
3060
196
(n, a, b) = [int(x) for x in input().split()] def charSum(s): r = 0 for c in s: r += int(c) ans = sum(list(filter(lambda x: a <= charSum(str(x)) <= b, range(1, n+1)))) print(ans)
s976642427
p03478
u173329233
1543159527
Python
Python (3.4.3)
py
Runtime Error
18
2940
159
n, a, b = map(int, input().split()) ans = 0 for i in range(1, n+1): sum = sum(list(map(int, list(str(i))))) if a<= sum <=b: ans+=i print(ans)
s047039769
p03478
u826263061
1543099974
Python
Python (3.4.3)
py
Runtime Error
17
3064
245
def sumorder(k, a, b): a = list(str(k)) s = sum(a) if a<=s and s<=b: return True else: return False n, a, b = list(map(int, input().split())) ans = 0 for i in range(1, n+1): if sumorder(i, a, b): ans += i print(ans)
s663731803
p03478
u410201501
1542136757
Python
Python (3.4.3)
py
Runtime Error
18
2940
143
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)