oj mrJudge
Toggle navigation
  • Login
    • Forget Password
      Login
User Image

Hello, Stranger

Guest
  • Analysis Mode
  • Problems
    • All Problems
    • Latest Problems
  • Join Us Now
  • Registration
  • Contact Us
  • Infomation
  • About
    • Terms of Use
    • Technical Specifications
    • Credits

catletters Batch , stdin/stdout

Registered Users Only

Please login to utilize this feature.

Do note that this website only supports submissions in C++.

catletters.html

Problem Description

Due to Rar the Cat's eccentricity, he has a special love for a certain letter of the alphabet, 'C'. In fact, he loves the letter 'C' so much, he is conducting an investigation on it! In order to prove that the letter 'C' is the best, he has found a series of N words from the cat dictionary. Given the N words he has found in the dictionary, help Rar the Cat by calculating the proportion of the letter 'C' in the words given.

Input

The first line of input will contain an integer, N.
The next N lines of input will contain a string no longer than 100 characters long, which denotes a word that Rar the Cat has found.

Output

Your output should contain a percentage, rounded down to the nearest integer, indicating the proportion in which the letter 'C' appears.

Limits

1 <= N <= 10 000

Sample Input 1

5
Peanut
Potato
Catfood
Awesome
Catfoodisfreakindeliciousyumyum

Sample Output 1

5%

Tags

String Processing

Subtasks and Limits

Subtask Score #TC Time Memory Scoring
1100101s64MBMinimum
2011s64MBMinimum

Judge Compile Command

g++-8 ans.cpp -o catletters -Wall -Wshadow -static -O2 -lm -m64 -s -w -std=gnu++17 -fmax-errors=512

Accepted Submissions

subIDUserTimeMax Time

Past Submissions

subIDUserTimeScore
mrJudge 09.05.20
Copyright © 2020 mrJudge. All rights reserved.