[Solution] Count the ACs CodeChef Solution
There are problems in a contest. You know that the score of each problem is either or points.
Chef came to know the total score of a participant and he is wondering how many problems were actually solved by that participant.
Given the total score of the participant, determine the number of problems solved by the participant. Print in case the score is invalid.
Input Format
- First line will contain , number of test cases. Then the test cases follow.
- Each test case contains of a single line containing a single integer - denoting the number of points scored by the participant.
Output Format
For each testcase, output the number of problems solved by the participant or if the score is
Complementary Strand in a DNA CodeChef Solution
Make all equal using Pairs Codechef Solution
Count the ACs CodeChef Solution
Strong Elements CodeChef Solution
Reversal Sorting CodeChef Solution
The Subarray XOR CodeChef Solution
invalid.
No comments:
Post a Comment