Submission #1766818
Source Code Expand
#include<cstdio> using namespace std; int main(){ char x[2]; scanf("%s", x); printf("%d\n", x[0] - 'A' + 1); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | orpheus |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 135 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 128 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, 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 | 0 ms | 128 KB |
C.txt | AC | 1 ms | 128 KB |
D.txt | AC | 1 ms | 128 KB |
E.txt | AC | 1 ms | 128 KB |