Skip to content

Commit b89ea97

Browse files
committed
ZOMCAV
2 parents fc9477a + 6471fe6 commit b89ea97

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

WATCHFB/WATCHFB.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1+
The solution given is created by the author and using it without prior written permission from the author can lead to legal actions.
2+
Please contact [email protected] for any queries
3+
4+
5+
16
https://www.codechef.com/problems/WATCHFB
27

38
Chef and his son Chefu want to watch a match of their favourite football team playing against another team, which will take place today.
49

5-
Unfortunately, Chef is busy in the kitchen preparing lunch, so he cannot watch the match. Therefore, every now and then, Chef asks Chefu about the current scores of the teams and Chefu tells him the score. However, Chefu sometimes does not specify the teams along with the score for example, he could say "the score is 3 to 6", and there is no way to know just from this statement if it was their favourite team or the other team that scored 6 goals; in different statements, the order of teams may also be different. Other times, Chefu specifies which team scored how many goals.
10+
Unfortunately, Chef is busy in the kitchen preparing lunch, so he cannot watch the match. Therefore, every now and then, Chef asks Chefu about the current scores of the teams and Chefu tells him the score. However, Chefu sometimes does not specify the teams along with the score for example, he could say "the score is 3 to 6", and there is no way to know just from this statement if it was their favourite team or the other team that scored 6 goals; in different statements, the order of teams may also be different. Other times, Chefu specifies which team scored how many goals.
611

712
Chef asks for the score and receives a reply N times. There are two types of replies:
813

@@ -50,4 +55,4 @@ Reply 2: Chefu told Chef that their favourite team has scored 3 goals so far.
5055
Reply 3: Chef can conclude that his favourite team has scored 4 goals, since it already scored 3 goals earlier.
5156
Reply 4: the favourite team could have scored 5 or 6 goals, but there is no way to know which option is correct.
5257
Reply 5: since there is a tie, Chef knows that his favourite team has scored 8 goals.
53-
Reply 6: again, Chef cannot know if his favourite team has scored 9 or 10 goals.
58+
Reply 6: again, Chef cannot know if his favourite team has scored 9 or 10 goals.

0 commit comments

Comments
 (0)