Submission #1438178
Source Code Expand
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> int main(void){ 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 | yamamoto |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 373 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%c", &x); ^
Judge Result
Set Name | all | ||
---|---|---|---|
Score / Max Score | 100 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
all | A.txt, B.txt, C.txt, D.txt, E.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
A.txt | AC | 0 ms | 128 KB |
B.txt | AC | 0 ms | 128 KB |
C.txt | AC | 0 ms | 128 KB |
D.txt | AC | 0 ms | 128 KB |
E.txt | AC | 0 ms | 128 KB |