This post is all about the solution of the "A - Rightmost" AtCoder Beginner Contest 276 Problem Solution Statement.



AtCoder



Problem Statement :

You have been given the string S, which is made up of lower case letter English letters.
If the letter a would seem in S, print the last index where it would seem; something else, print 1. (The index begins at 1.)


Format of Input :

The input is provided in the following format from Standard Input: A


Format of the Output :

Display output.


Also Check this out:-

B - Adjacency List AtCoder Beginner Contest 276 Problem Solution Click Here

Also Read :- Top Programming Languages of 2022 Click Here

Solution of the Problem: Click Here