Submit | All submissions | Best solutions | Back to list |
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
|
||||||||||||||
2013-05-14 17:40:16 Rowan Zafer
Test case 10, keeps bringing me down |
||||||||||||||
2013-04-23 12:54:58 aya mohsen
momkn 7ad y2oly el test cases? |
||||||||||||||
2013-04-06 12:29:04 ওয়াসী (Wasi)
Nice problem short and simple.. AC at 2nd attempt(forgot to return 0 first time :P) |
||||||||||||||
2013-03-29 02:47:34 Juɑƞ Chɑpɑrro
10 Lines ;) |
||||||||||||||
2013-03-27 11:03:28 killerz
one of the smallest... Last edit: 2013-03-27 11:03:39 |
||||||||||||||
2013-02-26 18:28:55 xxx
nice one....have a try :D :) !! |
||||||||||||||
2013-01-28 21:20:00 saket diwakar
simple one...:) |
||||||||||||||
2013-01-28 19:48:40 Anubhav Balodhi
got time limit exceeded! but still won't give up dat easy :D |
||||||||||||||
2013-01-28 12:07:30 nikoo28
too easy... :D |