Submission #1606375
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int x = sc.nextInt(); int a = sc.nextInt(); int b = sc.nextInt(); int xa = Math.abs(x-a); int xb = Math.abs(x-b); if (xa<xb) { System.out.println("A"); } else { System.out.println("B"); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Meal Delivery |
User | unirita156 |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 360 Byte |
Status | AC |
Exec Time | 94 ms |
Memory | 23892 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 100 / 100 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | sample1.txt, sample2.txt |
All | sample1.txt, sample2.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, sample1.txt, sample2.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
1.txt | AC | 91 ms | 20692 KB |
2.txt | AC | 92 ms | 19412 KB |
3.txt | AC | 94 ms | 21588 KB |
4.txt | AC | 92 ms | 21588 KB |
5.txt | AC | 93 ms | 21204 KB |
6.txt | AC | 93 ms | 17364 KB |
sample1.txt | AC | 91 ms | 23892 KB |
sample2.txt | AC | 93 ms | 19540 KB |