Submission #2481017
Source Code Expand
#include <stdio.h> int main(void) { char X[1]; char A[1]="A"; scanf("%s",X); printf("%d\n", (int)X[0]-(int)A[0]+1); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | fickleness |
Language | C (GCC 5.4.1) |
Score | 100 |
Code Size | 157 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.c: In function ‘main’: ./Main.c:7:5: 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 | 1 ms | 128 KB |
B.txt | AC | 1 ms | 128 KB |
C.txt | AC | 1 ms | 128 KB |
D.txt | AC | 1 ms | 128 KB |
E.txt | AC | 1 ms | 128 KB |