Problem hidden on 2013-05-25 15:02:22 by Mitch Schwartz
IND01 - Enjoy Flooring
Let us denote the greatest integer less than or equal to x by [x]. For a given integer n, determine the number of distinct integers in sequence.
[ 12 ÷ n ], [ 22 ÷ n ], ..... , [ n2 ÷ n ]
Input
Each line contains a single integer n (1 <= n < 10^18). Input is terminated by -1 (Don't process it). There are around 10^5 lines.
Output
For each test case, output the required answer on separate line.
Example
Input: 5 10 -1 Output: 4 8
hide comments
|
:-):
2015-02-16 14:42:01
done |
|
Francky:
2013-05-17 17:16:04
If psetter (govind lahoti ; multi account) want his problem visible, a rejudge must be done.
|
Added by: | :-) |
Date: | 2013-05-04 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
Resource: | own |