Submission #213438


Source Code Expand

Copy
#include<iostream>
#include<vector>
#include<cstdio>
#include<string>
#include<algorithm>
#include<numeric>
#include<map>
#include<math.h>
#include<stdlib.h>

using namespace::std;

int main(void)
{

  char c;

  cin >> c;

  if(c == 'A')
    {
     cout << 1 << endl;
    }
  else if(c == 'B')
    {
     cout << 2 << endl;
    }
  else if(c == 'C')
    {
     cout << 3 << endl;
    }
  else if(c == 'D')
    {
     cout << 4 << endl;
    }
  else if(c == 'E')
    {
     cout << 5 << endl;
    }

  return 0;
}

Submission Info

Submission Time
Task A - A
User yakk512
Language C++ (G++ 4.6.4)
Score 100
Code Size 556 Byte
Status AC
Exec Time 21 ms
Memory 924 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 20 ms 920 KB
B.txt AC 20 ms 920 KB
C.txt AC 21 ms 924 KB
D.txt AC 21 ms 676 KB
E.txt AC 20 ms 800 KB