Competitive Programming Solutions

GitHub
back to dashboard

C. Next Alphabet

Codeforces - Contest #1 · limit: 1s · memory: 256MB · view on codeforces

input

a

output

b
Main.java
static void solve() {

        // Write your solution here
        int c = in.next().charAt(0);
        out.print((char) ('a' + (c - 'a' + 1) % 26));
    }