Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
哪里错了,总是WA!!!代码如下: #include"stdio.h" #include"math.h" void main() { int n, t; long ans; scanf("%d", &t); while(t--) { scanf("%d", &n); ans = (long)pow(2, n-1) + (long)pow(4, n-1); printf("%ld\n", ans); } } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator