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:怎么会是Runtime error呢?大家帮帮忙吧!!

Posted by ding59 at 2008-09-21 10:29:12 on Problem 1658
In Reply To:怎么会是Runtime error呢?大家帮帮忙吧!! Posted by:tears at 2005-11-26 16:27:01
> #include <stdio.h>
> #include <math.h>
> void main(){
> 	int i,a,b,c,d,e,g,n;
> 	scanf("%d",&n);
> 	for(i=1;i<=n;i++){
> 		scanf("%d %d %d %d",a,b,c,d);
> 		if(b-a==c-b&&c-b==d-c){
> 			e=d+d-c;
> 		}
> 		else if(b/a==c/b&&c/b==d/c){
> 			      g=d/c;
> 			      e=d*g;
> 		}
> 	 printf("%d %d %d %d %d\n",a,b,c,d,e); 
> 	}
> }
> 还未学数组,用这个方法为什么不行呢?
> 

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