Submission #214178


Source Code Expand

Copy
#include<iostream>
using namespace std;

int main(void){
	char chino;
	int sharo;
	cin >> chino;

	for(sharo = 0; sharo < 5; sharo++){
		if('A' + char(sharo) == chino){
			cout << sharo + 1 << endl;
			return 0;
		}
	}
}

Submission Info

Submission Time
Task A - A
User rollman
Language C++ (G++ 4.6.4)
Score 100
Code Size 236 Byte
Status AC
Exec Time 22 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 22 ms 800 KB
B.txt AC 20 ms 796 KB
C.txt AC 21 ms 924 KB
D.txt AC 20 ms 744 KB
E.txt AC 20 ms 672 KB