Submission #213343
Source Code Expand
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define gc getchar int getint() { unsigned int c; int x = 0; while (((c = gc()) - '0') >= 10) { if (c == '-') return -getint(); if (!~c) exit(0); } do { x = (x << 3) + (x << 1) + (c - '0'); } while (((c = gc()) - '0') < 10); return x; } int getstr(char *s) { int c, n = 0; while ((c = gc()) <= ' ') { if (!~c) exit(0); } do { s[n++] = c; } while ((c = gc()) > ' ' ); s[n] = 0; return n; } template<class T> inline bool chmin(T &a, T b) { return a > b ? a = b, 1 : 0; } template<class T> inline bool chmax(T &a, T b) { return a < b ? a = b, 1 : 0; } char in[333]; int main () { int i, j, tcc, tc = 1; for (tcc = 0; tcc < tc; tcc++) { getstr(in); int res = in[0] - 'A' + 1; cout << res << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | Hagentern |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 843 Byte |
Status | AC |
Exec Time | 22 ms |
Memory | 804 KB |
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 | 764 KB |
B.txt | AC | 22 ms | 796 KB |
C.txt | AC | 20 ms | 804 KB |
D.txt | AC | 21 ms | 804 KB |
E.txt | AC | 21 ms | 676 KB |