Problem Description
Loading...
Problem Analysis
A pretty easy problem
First compute the sum from 1 to n using the formula
Then subtract 2 to the power of i one by one
Until 2 to the power of i is greater than n
cpp
| |
Problem URL:【CodeForces】[598A]Tricky Sum