Submission #1995666
Source Code Expand
/// // File: a.cpp // Author: ymiyamoto // // Created on Sat Jan 20 21:35:37 2018 // #include <bits/stdc++.h> using namespace std; #define rep(_n, _init, _N) for (int32_t _n = _init; _n < (int32_t)(_N); _n++) #define rrep(_n, _N, _end) for (int32_t _n = (int32_t)(_N); _n >= _end; _n--) #define iceil(_x, _y) (((_x) + (_y)-1) / (_y)) #define ifloor(_x, _y) ((_x) / (_y)) static const double pi = 2 * asin(1); static const double precision = 10e-9; int32_t main() { char X; cin >> X; string al = "ABCDEF"; rep(i, 0, al.size()) { if (al[i] == X) { cout << i + 1 << endl; return 0; } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - A |
User | mohei |
Language | C++14 (GCC 5.4.1) |
Score | 100 |
Code Size | 666 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 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 | 1 ms | 256 KB |
B.txt | AC | 1 ms | 256 KB |
C.txt | AC | 1 ms | 256 KB |
D.txt | AC | 1 ms | 256 KB |
E.txt | AC | 1 ms | 256 KB |