So, here you are finally competing for the title of the champion of C3W - 4. But before you go any further we've got something for you. It's not at all difficult if you're meant to be the guy who takes it all.
Given are some numbers against which a number has been calculated as it's output identify the logic behind it and move further.
Number | Output |
2 | 1 |
10 | 2 |
500 | 3 |
1000 | 4 |
16352 | 5 |
130840 | 6 |
Input format
An integer t, denoting the number of test cases, followed by t lines, each containing a single integer n.
Constraints
Output format
For each integer given as input, output the required answer as a single integer.
Author:
Aayush Agrawal
Testers:
Aayush Agrawal
Anubhav Singh