#Lutece0665. Elfness & Civilization V
Elfness & Civilization V
Migrated from Lutece 665 Elfness & Civilization V
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Elfness is addicted to a game named "Civilization V" recently.Last day he found a secret of "Civilization V" by chance.
In fact,after you win a game in the difficulty.There'll be a hidden stage for you to choose.You can visit the Base of UESTC_ACMers as long as you can pass the hidden stage.
The hidden stage is :
- Give you integers : .
- You should choose integers which are considered as and , from the list.
- Delete from the list and insert an new interger whose value is into the list 【After this step,the size of the list will decrease by one】 4、If the size of the list is ,print the last number in the list,otherwise repeat operation .
The final question is:How many different types of number can be printed after all these operations.
Input
The first line contains one integer (),indicate the number of cases.
For each case,there is one line contains a integer () as mentioned above.
Output
For each case,print one line which contain a integer,indicate the number of different value that can be.
Samples
1
3
6
Note
In the Sample,the last number might be .
Resources
第四届ACM趣味程序设计竞赛第五场(正式赛)