← All problemsSign in

Hattrick

CodeChefRating 853Open on judge ↗

In a cricket match, the retiring of three batsmen with **three consecutive** balls is termed as a *hattrick*. Let $A, B, C, D, E,$ and $F$ denote the batsman's score for each ball in order in an [over](https://en.wikipedia.org/wiki/Over_(cricket)). Each of these variables can be an integer less than equal to $6$ denoting the runs scored by the batsman, or `W` denoting a wicket. Find whether th

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start