Submission #1995316


Source Code Expand

// finish date: 2018/01/20
#include <iostream>
#include <cmath>
#include <vector>
#include <bitset>
#include <algorithm>
#include <stack>
#include <map>
#include <climits>

using namespace std;

#define FOR(i, a, b) for(int (i)=a;(i)<(b);(i)++)
#define rep(i, n)  FOR(i,0,n)
#define ll long long
#define bigmod 1000000007
#define INF 500000000


int main() {
    int x,a,b;
    cin>>x>>a>>b;
    if(abs(x-a)>abs(x-b)) cout<<"B"<<endl;
    else cout<<"A"<<endl;
    return 0;
}

Submission Info

Submission Time
Task A - Meal Delivery
User TASSAN
Language C++14 (GCC 5.4.1)
Score 100
Code Size 503 Byte
Status AC
Exec Time 1 ms
Memory 256 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 1 ms 256 KB
2.txt AC 1 ms 256 KB
3.txt AC 1 ms 256 KB
4.txt AC 1 ms 256 KB
5.txt AC 1 ms 256 KB
6.txt AC 1 ms 256 KB
sample1.txt AC 1 ms 256 KB
sample2.txt AC 1 ms 256 KB