A question paper contains N questions. The marks assigned to each correct answer is a. For each incorrect answer, you will lose b marks. Find the number of different marks that can be obtained in the examination.
Note: An unattempted question is awarded 0 marks.
Input format
Output format
Constraints
1≤T≤50
1≤N≤5∗104
1≤a,b≤20
For test case 1, you will get 0 for not attempting any question, 4 for the correct answer, and -3 for the wrong answer
For test case 2, you will get -2, -1, 0, 1, 2