yes
Time Limit: 1 seconds
Memory Limit: 1024 MB
Rating: 800
Problem StatementGiven a string $S$, count the number of A's present in the string. This includes both the uppercase 'A' and the lowercase 'a'. For example: 'hello my name is Alligator' would have 1 'A' and 2 'a's present, making a total of 3.
InputThe first line has string $S$, the length of which does not exceed $10^5$.
OutputOutput the sum of the number of characters "a" and the number of characters "A" present in $S$.
Sample CasesSample Input 1: hello my name is Alligator Sample Output 1: 3 Sample Input 2: aaaaAAaaAaaaa!! i died lmao Sample Output 2: 14Explanation
Not available for this problem.
SourcesIanOJ Contest #2 (Div. 4) > Problem A (Contributed by bronze@HungJan@)
Submit | Back