Submission #1585440


Source Code Expand

#include <bits/stdc++.h>

#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
#define FOR(i, m, n) for(int i = (m); i < (int)(n); ++i)
#define INF 2000000000

#ifdef LOCAL
  #define eprintf(...) fprintf(stderr, __VA_ARGS__)
#else
  #define eprintf(...) 0
#endif

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef unsigned int uint;

int main() {
  //int x,y;
  char c;
  scanf("%c", &c);
  printf("%d\n", c-'A'+1);
  return 0;

  /*
  string str;
  cin >> str;
  str += "pp";
  cout << str << endl;
  */
}

Submission Info

Submission Time
Task A - A
User yoshi_k
Language C++14 (GCC 5.4.1)
Score 100
Code Size 572 Byte
Status AC
Exec Time 1 ms
Memory 256 KB

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:22:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
   scanf("%c", &c);
                  ^

Judge Result

Set Name all
Score / Max Score 100 / 100
Status
AC × 5
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