Welcome to ConscientiaProblem code: TGPA01 |
This is especially for the newbies. So whosoever is doubtful as to where to start from, this is the place.
We are very happy that you registered and we welcome you to IIST's fest conscientia. Thus we have created a problem named "welcome to conscientia." After solving this problem, we hope that you'll feel very welcome.
If you read the previous paragraph, you're probably wondering why it's there. But if you read it very carefully, you might notice that the phrase "welcome to conscientia" is present several times: 51634 times in total. After all, it's easy to look through the paragraph and find a 'w'; then find an 'e' later in the paragraph; then find an 'l' after that, and so on. Your task is to write a program that can take any text and print out how many times that text contains the phrase "welcome to conscientia".
Input Format
The first line will contain the number of test cases, t. For each test case, a single line contains a string with a maximum length of 200 characters t<=15
Output Format
The number of times the phrase "welcome to conscientia" excluding the quotes has occurred.
Sample Input: 2 welcome to conscientia wellccome too ccoonscienntia Sample Output: 1 64
| Author: | theta |
| Date Added: | 25-02-2010 |
| Time Limit: | 5 sec |
| Source Limit: | 50000 Bytes |
| Languages: | C, CLOJ, CPP 4.3.2, F#, GO, PERL6, PYTH 3.1.2, TEXT |
Comments

Fetching successful submissions

Please check you test case
Please check you test case
There was some problem with
There was some problem with the test cases.
It has been rectified.
Please Try Again
Sorry for the inconvenience
Please, check your data
Please, check your data again.
Your data 51634 in problem
Your data 51634 in problem description seems like incorrect,
My program's output is 1489368.
The test case is really
The test case is really wrong.
Yeah the number in the text
Yeah the number in the text is wrong It should be 45364.
Sorry for that.
But the test cases are allright.
please check again. most of
please check again.
most of the contestants have solved this before.
that is how they are so confident
Sorry Again The problem was
Sorry Again
The problem was with the string limit. Have specified it wrong.
Have changed the test cases as per the limits specified.
now what is the string
now what is the string limit??
Its 200.
Its 200.
Marathon Programming Contest
Marathon Programming Contest by Microsoft DreamSpark Team Check http://www.codechef.com/CSOC20/
@Imran Please email your
@Imran
Please email your details to eclectic@conscientia.co.in
Winners will be posted on the
Winners will be posted on the Conscientia Website
@Imran: We need you to register on our website for formality to get the prize money.
Congratulation to all
Congratulation to all winners!
Thank you for participating in TGPA 2010
See you next year.