Submission #213765


Source Code Expand

Copy
//#define _USE_MATH_DEFINES
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
//#include <stdlib.h>
//#include <math.h>

int main(void){

	char X;

	scanf("%s", &X);
	
	printf("%d\n", X - 'A' + 1);

	return 0;
}

Submission Info

Submission Time
Task A - A
User letter
Language C (GCC 4.6.4)
Score 100
Code Size 227 Byte
Status AC
Exec Time 19 ms
Memory 796 KB

Compile Error

./Main.c: In function ‘main’:
./Main.c:11:7: warning: ignoring return value of ‘scanf’, 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 19 ms 704 KB
B.txt AC 18 ms 796 KB
C.txt AC 18 ms 796 KB
D.txt AC 18 ms 792 KB
E.txt AC 18 ms 796 KB