标签:规律
http://acm.neu.edu.cn/hustoj/problem.php?id=1459
规律题:
#include<cstdio> #include<iostream> using namespace std; int main() { long long ans; int t,n,i; scanf("%d",&t); while(t--) { ans=1; scanf("%d",&n); for(i=0;i<n-1;i++) { ans=(ans*2%20140413)%20140413; } cout<<ans<<endl; } return 0; }
标签:规律
原文地址:http://blog.csdn.net/u012773338/article/details/38847603