Submission #45492342
Source Code Expand
Copy
A, B, C = map(int, input().split())for i in range(A, B+1):if i % C == 0:print(i)breakelse:print(-1)
A, B, C = map(int, input().split()) for i in range(A, B+1): if i % C == 0: print(i) break else: print(-1)
Submission Info
Submission Time | |
---|---|
Task | A - Find Multiple |
User | KoyanagiHitoshi |
Language | Python (CPython 3.11.4) |
Score | 100 |
Code Size | 130 Byte |
Status | AC |
Exec Time | 10 ms |
Memory | 8636 KB |
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 | 10 ms | 8516 KB |
001.txt | AC | 10 ms | 8572 KB |
002.txt | AC | 10 ms | 8488 KB |
003.txt | AC | 9 ms | 8560 KB |
004.txt | AC | 10 ms | 8608 KB |
005.txt | AC | 10 ms | 8604 KB |
006.txt | AC | 10 ms | 8636 KB |
007.txt | AC | 10 ms | 8580 KB |
example0.txt | AC | 10 ms | 8500 KB |
example1.txt | AC | 10 ms | 8564 KB |