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.


hide comments
Rajat (1307086): 2014-08-25 23:22:36

10 th test case was like 1 ball 6 runs cricket match.6 runs if 10th case beaten otherwise clean bold ;)

Vaibhav Gosain: 2014-08-14 07:26:58

easy one even for begginers like me.... should be in the tutorial problems

Akashdeep: 2014-07-20 11:11:28

getting tle on 10th case anyone please explain

Sanket Dasgupta: 2014-06-27 13:50:07

@Saurabh, a square is a kind of rectangle. It is not necessary for a rectangle to have two unequal sides.

Saurav Sharma: 2014-06-25 18:11:55

There is a square in the diagram, not a rectangle. :)

shannider: 2014-06-23 00:07:09

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
shashank mishra: 2014-06-04 11:48:19

test case 10 is not pass in my code.

newbie: 2014-05-20 04:47:22

timelimit exceeded in the 10th test case

ppppppp: 2014-04-14 19:23:58

dont use float which cost me 5 wa but finally acc

Simon Liang: 2014-04-11 23:28:04

so many gotcha's in this one


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