Skip to content

Commit

Permalink
chore: day_13
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemincoder authored Apr 5, 2024
1 parent fe844ca commit c0513c1
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
16 changes: 16 additions & 0 deletions medium/day_13/problem.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
After securing victory in a challenging onsite round of the CodeYudh Programming Contest, Bluemin hopped on a bus bound for his college. Along the way, he encountered his fellow coder, Biraj, and to stave off boredom during the journey, they decided to engage in a game.

Here's how their game unfolded:

- Initially, there's a pile containing x 100-rupees coins and y 10-rupees coins.
- Taking turns alternately, Bluemin takes the first turn.
- Each turn involves extracting exactly 220 rupees from the pile. When it's Bluemin's turn, if there are multiple ways to take out 220 rupees, he selects the option with the maximum number of 100-rupees coins. Conversely, when it's Biraj's turn, if there are multiple ways to extract 220 rupees, he opts for the one with the most 10-rupees coins.
- If either Bluemin or Biraj fails to extract exactly 220 rupees from the pile, they lose the game.

Now, let's determine the winner of this intriguing game.

Input: The first line contains two integers x (0 ≤ x ≤ 10^6) and y (0 ≤ y ≤ 10^6), separated by a single space.

Output: If Bluemin emerges victorious, print "Bluemin". Otherwise, print "Biraj".

So, who will emerge triumphant in this tactical battle of wits? Let's find out.
11 changes: 11 additions & 0 deletions medium/day_13/sample_test_cases.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Examples

Input
2 2
Output
Bluemin

Input
3 22
Output
Biraj
1 change: 1 addition & 0 deletions medium/day_13/solution.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//write your code here

0 comments on commit c0513c1

Please sign in to comment.