After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Hence Chef can claim the maximum prize of 2 units. Are you sure you want to create this branch? Wrong Answer For the specific error codes see the help section. * The material and content uploaded on this website are for general information and reference purposes only. If Chef cant win any prize, print00. If there is a score for the problem, this will be Your Read our Privacy Policy Time Limit Exceeded Participants with rank 11 to 100 (both inclusive) receive rupees Y each. output. CodeChef was created as a platform to help programmers make it big in the world of algorithms, computer programming, and . Test Case 1 1: The maximum distance covered by Chef is 1 \cdot 1 = 1 1 1 =1 km which is less than any of the available distance categories. CodeChef_Solutions/MARARUN.cpp Go to file Cannot retrieve contributors at this time 78 lines (65 sloc) 2.06 KB Raw Blame /* Chefland is holding a virtual marathon for the categories 10 km, 21 km and 42 km having prizes A,B,C (A<B<C) respectively to promote physical fitness. The prize scheme is as follows: Top 10 participants receive rupees X each. Read our Privacy Policy Each of the T lines contain two integers A and B. Compilation Error and Terms to know more. !We'll be getting you the hints, approach and additional testcases of al. Given the maximum distance d km that Chef can cover in a single day, find the maximum prize that Chef can win at the end of D days. Time Limit Exceeded the problem page. We can also reduce the number of conditions by using an if-else ladder, as follows. Given the maximum distanceddkm that Chef can cover in a single day, find the maximum prize that Chef can win at the end ofDDdays. Given two numerical values A and B you need to help chef in finding the relationship between them that is, First one is greater than second or, First one is less than second or, First and second one are equal. Also a single person cannot apply in multiple categories. We use cookies to improve your experience and for analytical purposes. Contribute to athishaves/Codechef-Solutions development by creating an account on GitHub. For each test case, output in a single line the answer to the problem. and Terms to know more. Contest Division 3 In order to claim the prize in a particular category the person must cover the total distance for that category within D days. Your code was unable to compile. Below are the possible results: Accepted Your program ran successfully and gave a correct answer. This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. Powered by Discourse, best viewed with JavaScript enabled. Try optimizing your approach. Below are the possible Compute T = d*D as the total distance covered, and compare T with 10, 21, and 42 to determine the category person can apply to, and find the maximum prize. Your program ran successfully and gave a correct answer. After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Output output. results: Accepted SUBMISSIONS FOR MARARUN . Editorialist: Taranpreet Singh, Given the distance covered per day in km and the number of days, determine the prize won by person, if a person can get prize A for covering at least 10 km, B for covering at least 21 km, and C for covering at least 42 km. the problem page. Test Case 22: The maximum distance covered by Chef is 101=10101=10 km which is equal to distance of the first category. CodeChef is a popular online programming contest platform that hosts monthly programming contests. Test Case33:The maximum distance covered by Chef is103=30103=30km which is more than the distance of the second category but less than that of the third category. Suggestions are welcomed as always. Given A < B < C. Compute T = d*D as the total distance covered, and compare T with 10, 21, and 42 to determine the category person can apply to, and find the maximum prize. Determine whether he will get the visa. EXPLANATION Since person covers d km per day for D days, total distance covered is T = d*D. Now, the only thing we need to check is the largest prize category person can apply to. The first line contains an integer T, the number of test cases. Below are the possible results: Accepted Your program ran successfully and gave a correct answer. When you see this icon, click on it for more information. The description of TT test cases follows. A tag already exists with the provided branch name. After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. Feel free to share your approach. program was compiled successfully, but it didn't stop before time limit. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. When you see this icon, click on it for more information. For each test case, output in a single line the answer to the problem. If you are still having problems, see a sample solution here. Since we have 0 < A < B < C, we can see that. displayed in parenthesis next to the checkmark. Your code compiled and ran but encountered an error. You consent to our cookies if you continue to use our website. You signed in with another tab or window. Then the test cases follow. Cannot retrieve contributors at this time. Program should read from standard input and write to standard Chefland is holding a virtual marathon for the categories1010km,2121km and4242km having prizesA,B,CA,B,C(Acannotapply in multiple categories. Below are the possible results: ID Date/Time Username Result Time Mem Lang Solution; 46862755: 09:22 PM 24/05/21 Your program compiled and ran successfully but the output did not match the expected output. Input First line contains an integer T, which denotes the number of testcases. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. We can write those as if conditions as represented by the following pseudocode. Test Case 1: The maximum distance covered by Chef is 11=1 km which is less than any of the available distance categories. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. These contests are open to anyone from around the world and usually last for a few hours. dividing by zero. If there is a score for the problem, this will be displayed in parenthesis next to the checkmark. Test Case 3: The maximum distance covered by Chef is 103=30 km which is more than the distance of the second category but less than that of the third category. Tester: Istvan Nagy Below are the possible results: Accepted Your program ran successfully and gave a correct answer. Try your hand at one of our many practice problems and submit your solution in the language of your choice. Please do it by your own first. Participants compete in a range of categories, including beginner, intermediate, and advanced. Contribute to MansiSMore/CodeChef_Solutions development by creating an account on GitHub. You are given the number of problems solved by Chef (x2x2), his current rating (y2y2) and the information that he made his last submission z2z2 months ago. dividing by zero. you can see your results by clicking on the [My Submissions] tab on Hence Chef can claim the maximum prize of 11 units. Learn more about bidirectional Unicode characters. Input The first line of the input contains a single integer TT denoting the number of test cases. codechef-solutions Star CodeChef is a global competitive programming platform, started as an educational initiative in the year 2009. Program should read from standard input and write to standard output.After you submit a solution you can see your results by clicking on the [My Submissions] tab on the problem page. You consent to our cookies if you continue to use our website. To review, open the file in an editor that reveals hidden Unicode characters. Input First line contains an integer T, which denotes the number of testcases. We use cookies to improve your experience and for analytical purposes. Test Case 33: The maximum distance covered by Chef is 103=30103=30 km which is more than the . Follow Us . Program should read from standard input and write to standard Your code compiled and ran but encountered an error. Important Links of our resources & information -. CodeChef Solution Total Prize Money CodeChef Solution Problem - Total Prize Money CodeChef Solution In a coding contest, there are prizes for the top rankers. ID Date/Time Username Result Time Mem Lang Solution; 46830252: 11:59 PM 23/05/21: 3 . Each of the T lines contain two integers A and B. Test Case22:The maximum distance covered by Chef is101=10101=10km which is equal to distance of the first category. Test Case11:The maximum distance covered by Chef is11=111=1km which is less than any of the available distance categories. Output Below are the possible For the specific error codes see the help section. http://www.codechef.com Industries Software Development Company size 1,001-5,000 employees Headquarters MUMBAI, MAHARASHTRA Type Privately Held Founded 2009 Locations Primary OLD NAGARDAS ROAD,. Your code was unable to compile. Test Case 2 2: The maximum distance covered by Chef is 10 \cdot 1 = 10 101 =10 km which is equal to distance of the first category. Hence Chef won't be able to claim a prize in any of the categories. Hence Chef won't be able to claim a prize in any of the categories. Practice, Setter: Daanish Mahajan Runtime Error Your program ran successfully and gave a correct answer. After you submit a solution If you are still having problems, see a sample solution here. Each test case contains a single line of input, five integersD,d,A,B,CD,d,A,B,C. Compilation Error The time complexity is O(1) per test case. Hence Chef can claim the maximum prize of11units. The kingdom of Maahishmati had never lost a battle under him (as army-chief), and the reason for that was their really powerful army, also called as Mahasena. Try optimizing your approach. After you submit a solution Chefland is holding a virtual marathon for the categories 10 km, 21 km and 42 km having prizes A,B,C (A