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>

int main(){
    int quest;
    int count;
    int num[100001];
    char judge[100001];
    char other;
    int i, j;
    int back=0;
    int flag=0;
    int accept=0;
    int warning=0;

    scanf("%d %d", &quest, &count);
    for(i=0;i<count;i++){
        scanf("%d %c%c", &num[i], &judge[i], &other);
    }

    for(i=0;i<count;i++){
        for(j=i+1;j<count;j++){
            if(num[j]==num[i] && judge[j] == 'A'){
                back++;
                break;
            }
        }
        for(j=0,flag=0;j<i;j++){
            if(num[i] == num[j] && 'A' == judge[j]){
                flag++;
                break;
            }
        }
        if(flag == 0 && judge[i] == 'A'){
            accept++;
        }else if(flag == 0 && judge[i] == 'W' && back != 0){
            warning++;
        }
    }
    printf("%d %d\n", accept, warning);
    return 0;
}