标签:des logs out tle while content typedef pac output
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 10908 Accepted Submission(s): 6420
月之数
#include <stdio.h> #include <algorithm> #include <iostream> #include <string.h> #include <queue> using namespace std; typedef long long ll; int main() { ll t,n,ans; scanf("%lld",&t); while(t--) { ans=0; scanf("%lld",&n); ans+=(1<<(n-1)); ans+=((1<<(n-1))/2)*(n-1); printf("%lld\n",ans); } return 0; }
标签:des logs out tle while content typedef pac output
原文地址:http://www.cnblogs.com/a249189046/p/7634361.html