Submission #45491921
Source Code Expand
Copy
A, B, X = map(int, input().split())if 0 <= X-A <= B:print("YES")else:print("NO")
A, B, X = map(int, input().split()) if 0 <= X-A <= B: print("YES") else: print("NO")
Submission Info
Submission Time | |
---|---|
Task | A - Cats and Dogs |
User | KoyanagiHitoshi |
Language | Python (CPython 3.11.4) |
Score | 100 |
Code Size | 93 Byte |
Status | AC |
Exec Time | 10 ms |
Memory | 8620 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt, sample3.txt |
All | sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 10 ms | 8404 KB |
2.txt | AC | 9 ms | 8556 KB |
3.txt | AC | 9 ms | 8444 KB |
4.txt | AC | 9 ms | 8524 KB |
5.txt | AC | 10 ms | 8524 KB |
6.txt | AC | 9 ms | 8520 KB |
7.txt | AC | 9 ms | 8584 KB |
sample1.txt | AC | 9 ms | 8620 KB |
sample2.txt | AC | 9 ms | 8480 KB |
sample3.txt | AC | 9 ms | 8428 KB |