Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:哪里错了,总是WA!!!

Posted by rcljb at 2009-06-27 12:25:56 on Problem 3734
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator