| ||||||||||
| 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 | |||||||||
为什么???#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator