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
cabbie: 2018-05-11 21:18:44

AC in no go

ramesh_961: 2018-05-09 12:38:10

easy,AC in one go !Just think about factors

rohitistaken: 2018-04-18 16:35:40

AC in one go!!!

sarthak_8: 2018-03-19 21:58:48

Cakewalk. Don't forget for n = 1, else WA :P

badasshackme: 2018-03-10 14:20:13

it took me 30 minutes to realize that YOU MUST NOT ADD NEW LINE SYMBOL AT THE END OF OUTPUT, OR YOUR ABSOLUTELY CORRECT RESULT WILL BE REPORTED AS WRONG. Sorry for caps, it is annoying when you solved problem mathematically and some random new line rule ruins it.

pigpork: 2018-03-08 13:47:40

AC IN ONE GO!

richardks3647: 2018-02-24 08:05:40

AC in one go!

Last edit: 2018-03-03 06:57:22
dheerajdheeru: 2018-02-22 02:42:11

AC in one go
!!! ... :)

goodwilllion: 2018-01-29 09:21:37

AC IN ONE GO

sid_1097: 2018-01-06 14:31:57

What should be the output for input 10000 and 20.


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