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
|
||||||||||||||
2020-10-06 11:44:27
I got AC in this problem, I have n*sqrt(n) complexity solution, someone please share hint for a better solution. |
||||||||||||||
2020-10-04 09:34:08
only idiots write AC in one go stop spamming that shit |
||||||||||||||
2020-09-22 10:57:14
Hint: think of brute force... something like 1*1 1*2 1*3 1*4...... 1*n 2*2 2*3 2*4...... 2*n/2 and so on make these once... u'll get it |
||||||||||||||
2020-09-21 13:30:06
Extremely Easy one |
||||||||||||||
2020-09-17 15:08:59
For all the people who post "AC in one go" - NOBODY CARES, people look in the comments to find if they can get anything helpful, not to see you all bragging. so comment only if you have something useful to share. |
||||||||||||||
2020-08-12 10:23:43
my first AC in one go !!! Lets go !!! |
||||||||||||||
2020-06-29 08:33:33
an O(1) solution is possible for it .. just try to find that |
||||||||||||||
2020-06-10 17:29:23
Easy one, dont think the solution to be too complicated......Can be done in O(n*sqrt(n)) |
||||||||||||||
2020-05-31 16:05:15
AC in 2nd time!!!! |
||||||||||||||
2020-05-27 09:14:43
AC in one go |