count-total-number-of-colored-cells
1.0.0
Count Total Number of Colored Cells
Loading...
Searching...
No Matches
Public Member Functions
Solution Class Reference
Public Member Functions
long long
coloredCells
(int n)
Detailed Description
Definition at line
5
of file
main.cpp
.
Member Function Documentation
◆
coloredCells()
long long Solution::coloredCells
(
int
n
)
inline
Definition at line
8
of file
main.cpp
.
9
{
10
long
long
m = n;
11
return
(m * m) + ((m - 1) * (m - 1));
12
}
Referenced by
main()
.
The documentation for this class was generated from the following file:
main.cpp
Solution
Generated by
1.9.8