Submission #213631


Source Code Expand

Copy
#include "stdio.h"
#include "stdlib.h"
#include "algorithm"
#include "utility"
#include "queue"
#include "stack"

using namespace std;

int main(){

	char x;

	scanf("%c",&x);

	if(x=='A'){
		printf("1\n");
	}else if(x=='B'){
		printf("2\n");
	}else if(x=='C'){
		printf("3\n");
	}else if(x=='D'){
		printf("4\n");
	}else if(x=='E'){
		printf("5\n");
	}


return 0;
}

Submission Info

Submission Time
Task A - A
User YAZAWA
Language C++ (G++ 4.6.4)
Score 100
Code Size 396 Byte
Status AC
Exec Time 21 ms
Memory 708 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:14:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

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 21 ms 696 KB
B.txt AC 20 ms 652 KB
C.txt AC 19 ms 704 KB
D.txt AC 19 ms 708 KB
E.txt AC 19 ms 700 KB