Problem:
Score : 100 points

Problem Statement

Given is a lowercase English letter C that is not z. Print the letter that follows C in alphabetical order.

Constraints

C is a lowercase English letter that is not z.

Input

Input is given from Standard Input in the following format:

C

Output

Print the letter that follows C in alphabetical order.

Sample Input 1

a

Sample Output 1

b

a is followed by b.

Sample Input 2

y

Sample Output 2

z

y is followed by z.

Solution in C (GCC 5.4.1) (judge verdict: Wrong Answer)

#include<stdio.h>
#include<string.h>

int main()
{
  int n,m;
  char s[3];
  int i,p;

  /*入力*/
  scanf("%d",&n);
  scanf("%d",&m);

  int ac[100000]  = {0},wa[100000] = {0};

  /*ac[あってた問],wa[間違った問]*/
  for(i = 0;i < m;i++){
    scanf("%d",&p);
    scanf("%s",s);
    if((strcmp(s,"AC") == 0)&&(ac[p - 1] == 0)){ //acで、まだ一回も正解していない
      ac[p - 1] = 1;
    }
    else if((strcmp(s,"WA") == 0)&&(ac[p - 1] == 0)){//waで、まだ一回も正解していない
      wa[p - 1] += 1;
    }
  }

  int AC = 0,WA = 0;
  
  for(i = 0;i < n;i++){
    AC += ac[i];
    if(ac[i] == 1){
    WA += wa[i];
    }
  }

  printf("%d %d\n",AC,WA);

  return 0;
}