Submission #213341
Source Code Expand
#include<bits/stdc++.h> using namespace std; int main(){ char buf[100]; scanf("%s",buf); printf("%d\n",buf[0]-'A'+1); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | LayCurse |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 152 Byte |
Status | AC |
Exec Time | 29 ms |
Memory | 924 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
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 | 21 ms | 796 KB |
B.txt | AC | 22 ms | 924 KB |
C.txt | AC | 29 ms | 800 KB |
D.txt | AC | 22 ms | 804 KB |
E.txt | AC | 20 ms | 748 KB |