Back
Close

Spiling Misstak

Statement

 Goal

I am not a good speller. Sometimes I mix up the spelling of words and sometimes I even forget to put periods. Please count the number of words I have misspelled and the number of periods I have missed.
Input
A string containing the problem statement with some typos.
Output
Two space separated numbers, first the number of misspelled words (words that differ from the problem statement), secondly the number of missing periods.
Constraints
The string always contains 39 words and at most 255 characters. Valid characters are [a-zA-Z .].
Example
Input
I am not a gud spiler. Sumtimes I micks up teh spiling of wurds and sumetimes I even forgett to poot pariods Pleas cout the numbr of wurds i have mispilled and the numbr of pariods I have missed.
Output
19 1

Game modes
Shortest

Test cases
First draft Test
Input
I am not a gud spiler. Sumtimes I micks up teh spiling of wurds and sumetimes I even forgett to poot pariods Pleas cout the numbr of wurds i have mispilled and the numbr of pariods I have missed.
Output
19 1

2nd try Validator
Input
I is not of god spoiler Sumtimes I mix up the spiling of wurds and sumtimes I even forgett to poot pariods. Pleas cout the numbr of wurds O have mispilled and the numbreros of pariods i have missed.
Output
20 1

Proofread Test
Input
I am not a good speller. Sometimes I mix up the spelling of words and sometimes I even forget to put periods. Please count the number of words I have misspelled and the number of periods I have missed.
Output
0 0

Perfect Validator
Input
I am not a good speller. Sometimes I mix up the spelling of words and sometimes I even forget to put periods. Please count the number of words I have misspelled and the number of periods I have missed.
Output
0 0

what is a sentence Test
Input
i am not a good speller sometimes i mix up the spelling of words and sometimes i even forget to put periods please count the number of words i have misspelled and the number of periods i have missed
Output
7 3

what is a sentence. Validator
Input
i am not a good speller sometimes i mix up the spelling of words and sometimes i even forget to put periods please count the number of words i have misspelled and the number of periods i have missed.
Output
7 2

Turtle soup Test
Input
I like turtles a good deal. Sometimes I mix up some spices and herbs and add in one of my favorite turtles. Pieces of turtles simmering in broth I have prepared with a number of fresh cloves of garlic.
Output
27 0

Word soup Validator
Input
I like turtles a good deal. Sometimes I mix up some spelling and words and add in one of my favorite periods. Pieces of periods swimming in words I have misspelled with a number of fresh cloves of garlic.
Output
22 0

Solution language

Solution

Stub generator input