[Solution] Maximum Submissions CodeChef Solution
Problem
A participant can make submission every seconds. If a contest lasts for minutes, what is the maximum number of submissions that the participant can make during it?
It is also given that the participant cannot make any submission in the last seconds of the contest.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of a single integer , denoting the number of minutes.
Output Format
For each test case, output the maximum number of submissions a participant can make in minutes.
Explanation:
Test case : The contest lasts for minute, which is seconds. A participant can make submissions during this time — for example, in the -th second and in the -th second. Making or more submissions is impossible.
Test case : The contest lasts for minutes, which is seconds. A participant can make submissions during this time.
No comments:
Post a Comment