Submission #2995646
Source Code Expand
#include <stdio.h> int main(void){ char X; scanf("%s", &X); char Y[6] = "ABCDE"; int i; for(i = 0; i < 6; i++){ if(X == Y[i]){ printf("%d\n", i+1); } } }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | yuina_tu |
Language | C (GCC 5.4.1) |
Score | 100 |
Code Size | 194 Byte |
Status | AC |
Exec Time | 0 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:5:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", &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 |