Question: Code in any language Problem Statement Selectar General All has made a test for his soldiers. The test has N questions. There are three possible


Code in any language
Problem Statement Selectar General All has made a test for his soldiers. The test has N questions. There are three possible scoring criteria defined below for each question: The correct answer is worth X points, The wrong answer is worth -Y points An unattempted question is worth 0 points, Your task is to help General Ali calculate number of distinct scores his soldiers might get on the test. ie TI 12 13 Input Format The first line contains an integer, N, denoting the number of questions the test has. The next line contains an integer, X, denoting the amount of points gained if a question is correct The next line contains an integer, Y, denoting the amount of points lost if a question is wrong. 15 10 17 18 Constraints 1 (N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
