All submissions for this problem are available.
One night, Virat was missing her friend a lot while on a tour with the Indian Cricket Team.
So, he starts texting her.
When she receives the text message from Virat, she is very sleepy and therefore she prefers to reply with a certain emoticon.
She can perform any one of the following things in one key press on her phone:
Find the maximum numbers of emoticons she was able to send in her text reply to Virat.
The first line contains a single integer T, the number of test cases. T test cases follow. Each of the T test cases contains a single line with a single integer N representing the number of key presses.
For each test case, output a single line containing the answer (maximum number of emoticons in message) as a single integer.
- 1 ≤ T ≤ 100
- 1 ≤ N ≤ 150
Input: 2 7 8 Output: 9 12
|Time Limit:||0.1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.5, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, SCALA, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, PERL6, TEXT, SCM chicken, CLOJ, FS|
Fetching successful submissions
If you are still having problems, see a sample solution here.