Chef Loves Cakes SOLUTIONS ECAUG201

Chef Loves Cakes SOLUTIONS ECAUG201

Culinary specialist was exhausted remaining at home in the lockdown. He needed to go out for a change. Culinary specialist and Chefu are partial to eating Cakes,so they chose to go the Cake shop where cakes of all conceivable cost are accessible . They chose to buy cakes of equivalent cost and every one of them will pay for their cakes. Gourmet specialist just has coins of division N while Chefu has that of section M. So they need your assistance to discover the base add up to be spent so as to buy the cakes. 
First line will contain T, number of testcases. At that point the testcases follow. 
Each testcase contains of a solitary line of info, two whole numbers N,M. 
For each testcase, yield in a solitary line answer the base add up to be spent so as to buy the cake. 
Test Input: 
2 3 
Test Output: 

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 :

Leave a Comment

error: Content is protected !!