You are viewing a single comment's thread. Return to all comments →
Basically it just takes the last line of the editorial and does that in a loop.
"So final answer will be (2^a[1] + 1) * (2^a[2] + 1)* ........ *(2^a[n] + 1) - 1."
The fancy stuff like the big integer stuff and the type conversions are just there to help pass some of the bigger test cases I believe.
Seems like cookies are disabled on this browser, please enable them to open this website
Shashank and List
You are viewing a single comment's thread. Return to all comments →
Basically it just takes the last line of the editorial and does that in a loop.
"So final answer will be (2^a[1] + 1) * (2^a[2] + 1)* ........ *(2^a[n] + 1) - 1."
The fancy stuff like the big integer stuff and the type conversions are just there to help pass some of the bigger test cases I believe.