AE00 - Rectangles

Byteman has a collection of N squares with side 1. How many different rectangles can he form using these squares?

Two rectangles are considered different if none of them can be rotated and moved to obtain the second one. During rectangle construction, Byteman can neither deform the squares nor put any squares upon any other ones.

Input

The first and only line of the standard input contains one integer N (1 <= N <= 10000).

Output

The first and only line of the standard output should contain a single integer equal to the number of different rectangles that Byteman can form using his squares.

Example

For the input data:

6

the correct result is:

8

Task author: Jakub Radoszewski.


Added by:Race with time
Date:2009-05-03
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All except: ERL JS-RHINO NODEJS PERL6 VB.NET
Resource:Algorithmic Engagements 2009

hide comments
2014-06-24 19:08:01 Ashis
AC in first run :)
2014-06-23 00:07:09 shannider
If you are getting WA in 10th test case, your algo. is probably wrong for odd 'n'.

Last edit: 2014-06-23 00:35:51
2014-06-20 20:50:35 Shireen Nagdive
Ac in second attempt :D
2014-06-08 14:10:25 chin
got in the frst do!!!!:D
2014-06-04 11:48:19 shashank mishra
test case 10 is not pass in my code.
2014-05-27 09:23:47 insane0808
AC at first go ... :)
2014-05-20 05:17:26 newbie
0.01 AC! at last
2014-05-20 04:47:22 newbie
timelimit exceeded in the 10th test case
2014-05-04 23:06:05 Mensud Beèar
six rows solution, AC at first go :)
2014-04-14 19:23:58 ppppppp
dont use float which cost me 5 wa but finally acc
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.