Pantun Grader
Time limit1sMemory limit256 MB
Score the first four verses of each pantun on syllable count, rhyme pairs and matching lengths, then subtract penalties for extra verses.
- Level
Easy3 of 10
- Topics
- String, Implementation, Simulation
- Solved
- No attempts yet
Problem
Score the first four verses of a pantun: syllable marks (8-12 syllables), rhythm pairs (last two letters of last word), matching syllable counts, and 10-point penalty per extra verse.
Input
Test count , then pantun lines with verses separated by commas and ending with a period.
Output
Print Case #X: A B C D E for syllable, rhythm, matching syllable, penalty, and total points.