Submission #2865405
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int A = sc.nextInt(); int B = sc.nextInt(); int X = sc.nextInt(); String ans = "YES"; if(X<A||X>(A+B)) ans = "NO"; System.out.println(ans); } }
Submission Info
Submission Time | |
---|---|
Task | A - Cats and Dogs |
User | AlbertZ |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 344 Byte |
Status | AC |
Exec Time | 95 ms |
Memory | 23764 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 | 93 ms | 19796 KB |
2.txt | AC | 93 ms | 19284 KB |
3.txt | AC | 94 ms | 23760 KB |
4.txt | AC | 93 ms | 20948 KB |
5.txt | AC | 91 ms | 19796 KB |
6.txt | AC | 95 ms | 19792 KB |
7.txt | AC | 92 ms | 18772 KB |
sample1.txt | AC | 92 ms | 22740 KB |
sample2.txt | AC | 91 ms | 19156 KB |
sample3.txt | AC | 92 ms | 23764 KB |