| ||||||||||
| 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 | |||||||||
Re:哪里错了,总是WA!!!In Reply To:哪里错了,总是WA!!! Posted by:200730720308 at 2009-05-21 22:06:36 > 代码如下:
>
> #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