Submission #26130192
Source Code Expand
a, b, c = map(int, input().split())
l = a // c
r = b // c
for i in range(1, r + 1):
if a <= i * c <= b:
print(i * c)
break
else:
print(-1)
Submission Info
| Submission Time | |
|---|---|
| Task | A - Find Multiple |
| User | cubesat |
| Language | Python (3.8.2) |
| Score | 100 |
| Code Size | 176 Byte |
| Status | AC |
| Exec Time | 23 ms |
| Memory | 9152 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 100 / 100 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | example0.txt, example1.txt |
| All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, example0.txt, example1.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 000.txt | AC | 23 ms | 8864 KiB |
| 001.txt | AC | 18 ms | 8864 KiB |
| 002.txt | AC | 17 ms | 8968 KiB |
| 003.txt | AC | 17 ms | 9096 KiB |
| 004.txt | AC | 18 ms | 9088 KiB |
| 005.txt | AC | 17 ms | 9092 KiB |
| 006.txt | AC | 18 ms | 9152 KiB |
| 007.txt | AC | 18 ms | 8868 KiB |
| example0.txt | AC | 17 ms | 9024 KiB |
| example1.txt | AC | 22 ms | 9012 KiB |