Submission #213358


Source Code Expand

Copy
#include <bits/stdc++.h>

#define INF (1 << 29)
#define rep2(i,m,n) for(int i=(int)(m);i<(int)(n);i++)
#define rep(i,n) rep2(i,0,n)
#define EPS 1e-10

using namespace std;

typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

int dx[4] = {-1,0,1,0};
int dy[4] = {0,1,0,-1};

int main()
{
    char c;
    cin >> c;
    cout << (int)(c-'A')+1 << endl;
    return 0;
}

Submission Info

Submission Time
Task A - A
User garasubo
Language C++ (G++ 4.6.4)
Score 100
Code Size 418 Byte
Status AC
Exec Time 24 ms
Memory 920 KB

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 5
Set Name Test Cases
all A.txt, B.txt, C.txt, D.txt, E.txt
Case Name Status Exec Time Memory
A.txt AC 24 ms 800 KB
B.txt AC 23 ms 732 KB
C.txt AC 22 ms 920 KB
D.txt AC 21 ms 800 KB
E.txt AC 22 ms 800 KB