Problem Description
Loading...
Problem Analysis
Just look for the pattern. The answer is $2^{n-1}-1$. Note that intermediate values overflow when using Fast Exponentiation.
cpp
| |
Just look for the pattern. The answer is $2^{n-1}-1$. Note that intermediate values overflow when using Fast Exponentiation.
| |
Loading...