File tree 1 file changed +27
-0
lines changed
1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change
1
+ ** Kevin** and ** Stuart** want to play the ** 'The Minion Game'** .
2
+
3
+ ### Game Rules :
4
+ - Both players are given the same string, S.
5
+ - Both players have to make substrings using the letters of the string S.
6
+ - Stuart has to make words starting with consonants.
7
+ - Kevin has to make words starting with vowels.
8
+ - The game ends when both players have made all possible substrings.
9
+
10
+ ### Scoring :
11
+ A player gets +1 point for each occurrence of the substring in the string S.
12
+
13
+ ### Example :
14
+ - String S = BANANA
15
+
16
+ ![ image] ( https://user-images.githubusercontent.com/105034758/193463925-fd4630b4-25a5-4141-9fb0-babe1c2aabe2.png )
17
+
18
+ ### Input Format :
19
+ - A single line of input containing the string S.
20
+ - The string S will contain only uppercase letters:[ A - Z] .
21
+
22
+ ### Constraints :
23
+ 0 < len(s) <= 10^6
24
+
25
+ ### Output Format :
26
+ - Print one line: the name of the winner and their score separated by a space.
27
+ - If the game is a draw, print Draw.
You can’t perform that action at this time.
0 commit comments