You are viewing a single comment's thread. Return to all comments →
**long lights(int n) { long ways = 1; for(int i = 0 ; i < n ; i++){ ways *= 2; if(ways > 100000) ways %= 100000; } return ways-1;
Seems like cookies are disabled on this browser, please enable them to open this website
Diwali Lights
You are viewing a single comment's thread. Return to all comments →
**long lights(int n) { long ways = 1; for(int i = 0 ; i < n ; i++){ ways *= 2; if(ways > 100000) ways %= 100000; } return ways-1;