| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 37777 | 氩_wjy | 【S】T1 | C++ | Time Limit Exceeded | 10 | 1000 MS | 256 KB | 403 | 2025-05-11 12:45:58 |
#include<bits/stdc++.h> #define int long long #define endl '\n' using namespace std; const int mod=1e9+7; int n; inline int qpow(int a,int b){ int Ans=1; while(b){ if(b&1)Ans=Ans*a%mod; a=a*a%mod;b>>=1; }return Ans; } signed main(){ int T; cin>>T; while(T--){ cin>>n; cout<<(qpow(2,n)-(1+n)%mod+mod)%mod<<endl; }return 0; }