Square and Points
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Determine the maximum number of points with integer coordinates that can be enclosed by a square with a side length of N
cells on a grid.
Input
A single integer N
, representing the side length of the square (1 ≤ N ≤ 10000
).
Output
The maximum number of cells K
that can be covered.
Examples
Input #1
Answer #1
Submissions 19K
Acceptance rate 49%