Submission #15155589


Source Code Expand

Copy
import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

L, R, D = map(int, read().split())

print(sum(x % D == 0 for x in range(L, R + 1)))

Submission Info

Submission Time
Task A - Number of Multiples
User maspy
Language Python (3.8.2)
Score 100
Code Size 209 Byte
Status
Exec Time 29 ms
Memory 9172 KB

Judge Result

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt, sample_03.txt
All 100 / 100 random_01.txt, random_02.txt, random_03.txt, random_04.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt 28 ms 9172 KB
random_02.txt 26 ms 8876 KB
random_03.txt 29 ms 9036 KB
random_04.txt 22 ms 8872 KB
sample_01.txt 28 ms 8984 KB
sample_02.txt 27 ms 9036 KB
sample_03.txt 28 ms 8864 KB