NEU-1459: 奇怪的取石子
时间:2014-08-26 15:32:36
收藏:0
阅读:276
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
评论(0)