Submission #1995081


Source Code Expand

#!/usr/bin/env python3
# -*- coding: utf-8 -*-



def main():
    X, A, B = map(int, input().split())

    da = abs(X-A)
    db = abs(X-B)

    if da < db:
        print("A")
    elif da > db:
        print("B")
    else:
        assert False

if __name__ == "__main__": main()

Submission Info

Submission Time
Task A - Meal Delivery
User yumsiim
Language Python (3.4.3)
Score 100
Code Size 278 Byte
Status AC
Exec Time 17 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 10
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 17 ms 2940 KB
2.txt AC 17 ms 2940 KB
3.txt AC 17 ms 2940 KB
4.txt AC 17 ms 2940 KB
5.txt AC 17 ms 3064 KB
6.txt AC 17 ms 2940 KB
sample1.txt AC 17 ms 2940 KB
sample2.txt AC 17 ms 2940 KB