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

为什么???

Posted by 90401552 at 2004-12-22 16:08:51 on Problem 1658
#include <stdio.h>
void main(){
	int i,M[5],n,*p,j;
	p=M;
	scanf("%d",&n);
	while (i=1;i<=n;i++){
		for(j=0;j<=3;j++)   {scanf("%d ",*(p+j));}
		if(*(p+3)-*(p+2)==*(p+2)-*(p+1)==*(p+1)-*p) {
			*(p+4)=2*(*(p+3))-*(p+2);
		}
		else *(p+4)=(*(p+3))*(*(p+3))/(*(p+2));
		for(j=0;j<=4;j++) printf("%d ",*(p+j));
		printf("\n");
		
	}
}

 

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