We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
#include<bits/stdc++.h>#define MOD 1000000007usingnamespacestd;intmain(){intt;cin>>t;for(inti=0;i<t;i++){longn;cin>>n;cout<<2*fmod(1+pow(2,n),MOD)<<"\n";}return0;}
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Sherlock and Square
You are viewing a single comment's thread. Return to all comments →
Is there any problem with the logic?