Submission #9806785


Source Code Expand

Copy
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))

Submission Info

Submission Time
Task ABC083B - Some Sums
User nanas
Language Python3 (3.4.3)
Score 200
Code Size 103 Byte
Status
Exec Time 27 ms
Memory 2940 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 s1.txt, s2.txt, s3.txt
All 200 / 200 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, s1.txt, s2.txt, s3.txt
Case Name Status Exec Time Memory
01.txt 27 ms 2940 KB
02.txt 20 ms 2940 KB
03.txt 27 ms 2940 KB
04.txt 27 ms 2940 KB
05.txt 26 ms 2940 KB
06.txt 26 ms 2940 KB
07.txt 26 ms 2940 KB
08.txt 25 ms 2940 KB
s1.txt 17 ms 2940 KB
s2.txt 17 ms 2940 KB
s3.txt 17 ms 2940 KB