Submission #1605346
Source Code Expand
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools sys.setrecursionlimit(10**7) inf = 10**20 gosa = 1.0 / 10**10 mod = 10**9 + 7 def LI(): return [int(x) for x in sys.stdin.readline().split()] def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()] def LF(): return [float(x) for x in sys.stdin.readline().split()] def LS(): return sys.stdin.readline().split() def I(): return int(sys.stdin.readline()) def F(): return float(sys.stdin.readline()) def S(): return input() def main(): x,a,b = LI() if abs(x-a) > abs(x-b): return 'B' return 'A' print(main())
Submission Info
Submission Time | |
---|---|
Task | A - Meal Delivery |
User | iehn |
Language | Python (3.4.3) |
Score | 100 |
Code Size | 676 Byte |
Status | AC |
Exec Time | 53 ms |
Memory | 6096 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 | 53 ms | 6096 KB |
2.txt | AC | 40 ms | 5332 KB |
3.txt | AC | 40 ms | 5332 KB |
4.txt | AC | 41 ms | 5332 KB |
5.txt | AC | 40 ms | 5332 KB |
6.txt | AC | 41 ms | 5460 KB |
sample1.txt | AC | 40 ms | 5328 KB |
sample2.txt | AC | 41 ms | 5328 KB |