Submission #3455342
Source Code Expand
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner scan = new Scanner(System.in); int x = scan.nextInt(); int a = scan.nextInt(); int b = scan.nextInt(); if (Math.abs(x - a) < Math.abs(x - b)) { System.out.println("A"); } else { System.out.println("B"); } } }
Submission Info
Submission Time | |
---|---|
Task | A - Meal Delivery |
User | mageehoa |
Language | Java8 (OpenJDK 1.8.0) |
Score | 100 |
Code Size | 381 Byte |
Status | AC |
Exec Time | 96 ms |
Memory | 21844 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 | 94 ms | 21844 KB |
2.txt | AC | 96 ms | 19284 KB |
3.txt | AC | 95 ms | 19924 KB |
4.txt | AC | 94 ms | 19924 KB |
5.txt | AC | 95 ms | 21204 KB |
6.txt | AC | 96 ms | 18644 KB |
sample1.txt | AC | 96 ms | 21588 KB |
sample2.txt | AC | 95 ms | 20816 KB |