All submissions for this problem are available.
Young Stewie2K wants to pick flowers from a garden for N consecutive days. Each day he picks one more than the previous day. Initially he has no flowers and he starts with picking one flower on day 1. Can you tell how many flowers has he picked in total after N days?
First and only line contains an integer N
The answer to the question
Should contain all the constraints on the input data that you may have. Format it like:
- 1 ≤ N ≤ 1000
Input: 3 Output: 6
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, 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, kotlin, PERL6, TEXT, SCM chicken, CLOJ, COB, FS|
Fetching successful submissions