Half Birthday SOLUTIONS HALFBDAY

Half Birthday SOLUTIONS HALFBDAY

Gourmet expert won’t have the option to go to the birthday of his closest companion Rock. He guaranteed Rock that this won’t be the situation on his half birthday. To stay faithful to his commitment Chef must know Rock’s next half birthday precisely. Being occupied, he is relegating this work to you. 

Half birthday is the day that happens precisely between two resulting birthday events. You will be given Rock’s birthdate and birth month, you should make sense of his half birthday. 

Note: Consider each year to be a jump year and all months are shown in lowercase English characters. 

 

Info: 

The principal line of the info contains a solitary number T meaning the quantity of experiments. 

The depiction of every one of the T experiments contains a number d followed by a string, indicating month m. 

Here d indicates day of a month and m means the period of a year separately. 

 

Yield: 

For each experiment print a whole number d1 followed by a string, meaning month m1, which in general signifies date and month of Rock’s half birthday. 

 

Requirements: 

1≤T≤105 

1≤d,d1≤31 

january≤m,m1≤december 

 

Test Input: 

15 january 

31 eminent 

10 october 

 

Test Output: 

16 july 

1 walk 

10 april

March Long Challenge 2021 Solutions

April Long Challenge 2021 Solutions

Codechef Long Challenge Solutions

February Long Challenge 2021

1. Frog Sort Solution Codechef

2. Chef and Meetings Solution Codechef

3. Maximise Function Solution Codechef

4. Highest Divisor Solution Codechef

5. Cut the Cake Challenge Solution Codechef

6. Dream and the Multiverse Solution Codechef

7. Cell Shell Solution Codechef

8. Multiple Games Solution Codechef

9. Another Tree with Number Theory Solution Codechef

10. XOR Sums Solution Codechef

11. Prime Game Solution CodeChef

12. Team Name Solution Codechef

January Long Challenge 2021

November Challenge 2020 SOLUTION CodeChef

October Lunchtime 2020 CodeChef SOLUTIONS

RELATED :

Related :

Related :

1 thought on “Half Birthday SOLUTIONS HALFBDAY”

Leave a Comment