DCP-184: Easy Sequence Back to All Problems

Beginner Math > Basic Math


Moin loves to play with sequence. Now here is a sequence **1 3 4 ............... N** . Your task is to find the Nth term of the sequence. Input: ------ Input starts with an integer **T (1<=20)**, denoting the number of test cases. Each case contains an integer **N (1 ≤ N ≤ 44)** denoting the term number. Output: ------- For each input output the Nth term of the sequence in a single line. Sample Input ------------ 1 4 Sample Output ------------- 7


Problem Setter:

Sifat Rabbi

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# 2.00
Go 2.00
Java 2.00
JavaScript 2.00
Objective-C 2.00
Perl 2.00
PHP 2.00
Python 2.00
Python3 2.00
Ruby 2.00
VB.Net 2.00

Problem Stats

472/784

Solve/Submission

Ranking

# User Language Timing
01 sukanta Cpp14 0.00s
02 iamramzan Cpp14 0.00s
03 jualahmed Cpp14 0.00s
04 JubayerSohel Cpp14 0.00s
05 AlaminJust Cpp14 0.00s
06 Salty_Coder Cpp14 0.00s
07 The_Viper Cpp14 0.00s
08 ash12 Cpp14 0.00s
09 jayed_al_hasan Cpp14 0.00s
10 maxhasan Cpp14 0.00s
11 joy25896 Cpp14 0.00s
12 Ashish972 Cpp14 0.00s
13 gulzar Cpp14 0.00s
14 HM39 Cpp14 0.00s
15 deder Cpp14 0.00s
16 Core_i14 Cpp14 0.00s
17 ShihabHossain Cpp14 0.00s
18 Nurul_CSE Cpp14 0.00s
19 hmtanbir Cpp14 0.00s
20 Koushik54 Cpp14 0.00s
21 Mehedi07 Cpp14 0.00s
22 Mr_KAJOL Cpp14 0.00s
23 Saimum_140128 Cpp14 0.00s
24 atqrhmn Cpp14 0.00s
25 Ruman_Hossain Cpp14 0.00s
26 lolcoder Cpp14 0.00s
27 Anika_Bushra Cpp14 0.00s
28 soumitro_cse1604114 Cpp14 0.00s
29 1604099_ishtiaq Cpp14 0.00s
30 junayedmahmud Cpp14 0.00s
31 Mahadi024 Cpp14 0.00s
32 noyonhossen Cpp14 0.00s
33 Alnoman120113 Cpp14 0.00s
34 shishir09 Cpp14 0.00s
35 joymollick Cpp14 0.00s
36 CSE1604084_Mahir Cpp 0.00s
37 Rakib05 C 0.00s
38 shameemreza Cpp 0.00s
39 MarufAhmed Cpp 0.00s
40 Rifat121 Cpp 0.00s
41 naimahmedbd1 Cpp14 0.00s
42 monir769 Cpp 0.00s
43 non_coder C 0.00s
44 mahmud2690 Cpp 0.00s
45 abdulmukit Cpp 0.00s
46 Antor_Sarker_Sabuj C 0.00s
47 Sky2496 Cpp14 0.00s
48 MBSTU_RAKIB_NR Cpp 0.00s
49 Roll_no_152 C 0.00s
50 wizard Cpp 0.00s
Feedback

Your feedback is our precious!



Or call +88 02 9853138 for support