DCP-210: Gabu and the Series Back to All Problems

Beginner Beginners Problems > Ad-hoc


Gabu is very talented boy. He is obsessed with number series. One day his friend Tabu challenged him to solve the following series: 0, 2, 8, 18, 32, 50, 72, 98......... n. His task is to find nth number of the series. Input: ------ Input starts with an integer **T (1<=20)**, denoting the number of test cases. Each case contains an integer **N (1 ≤ N ≤ 1000000)** Output: ------- You have to print the Nth number of the above mentioned series. Sample Input ------------ 4 5 8 9 100 Sample Output ------------- 32 98 128 19602


Problem Setter:

Md.Mushfiqur Rahman

Please login to submit solution to this problem.

Problem Limits

Language Time Limit (seconds)
C 1.00
C++ 1.00
C++14 1.00
C# 3.00
Go 3.00
Java 3.00
JavaScript 3.00
Objective-C 3.00
Perl 3.00
PHP 3.00
Python 3.00
Python3 3.00
Ruby 3.00
VB.Net 3.00

Problem Stats

355/681

Solve/Submission

Ranking

# User Language Timing
01 shamiul_pust Cpp14 0.00s
02 ash12 Cpp14 0.00s
03 Titanium_Owner Cpp14 0.00s
04 Gang_Of_Three_01 Cpp14 0.00s
05 HR_Habib Cpp14 0.00s
06 sakib_ruet_13 Cpp14 0.00s
07 MAHRahat Cpp14 0.00s
08 subhashis_cse Cpp14 0.00s
09 aseem_cu Cpp14 0.00s
10 codebreaker007 Cpp14 0.00s
11 mamunparvez Cpp14 0.00s
12 emrul Cpp14 0.00s
13 muhaimin Cpp14 0.00s
14 msiamn Cpp14 0.00s
15 sherina Cpp 0.00s
16 Najat Cpp14 0.00s
17 Masum_ice Cpp14 0.00s
18 Knight_King Cpp14 0.00s
19 akram Cpp14 0.00s
20 Arpan_cse_2k14 Cpp14 0.00s
21 azizul400 Cpp14 0.00s
22 joy25896 Cpp14 0.00s
23 chandan Cpp14 0.00s
24 Flash_DS Cpp14 0.00s
25 mjtbasif Cpp14 0.00s
26 deder Cpp14 0.00s
27 fearless_hasan Cpp14 0.00s
28 CodeMechanix Cpp14 0.00s
29 Dinar Cpp14 0.00s
30 dip_BRUR Cpp14 0.00s
31 haloom Cpp14 0.00s
32 nabil_053 Cpp14 0.00s
33 Logic_Hunter Cpp14 0.00s
34 Suhi31 Cpp14 0.00s
35 SIU_LasToNe Cpp14 0.00s
36 abd_iubat Cpp14 0.00s
37 AbirRahman Cpp14 0.00s
38 shahad_mahmud Cpp14 0.00s
39 Anubis Cpp14 0.00s
40 burhan103335 Cpp14 0.00s
41 xb_saykat Cpp14 0.00s
42 mahbub07 Cpp14 0.00s
43 Raka143 Cpp14 0.00s
44 ibrahimnsu15 Cpp14 0.00s
45 Sky2496 Cpp14 0.00s
46 onucsecu Cpp14 0.00s
47 hiddenhopes Cpp14 0.00s
48 FariD Cpp14 0.00s
49 prottoy919 Cpp14 0.00s
50 jamil993 Cpp14 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support