#8451: wa......


forveror (Debug 要20分鐘)


#include <iostream>
using namespace std;
int main(){
int t,x1,x2,x3,x4,x5;
while(cin>>t,t--){
cin>>x1>>x2>>x3>>x4;
if(((x2-x1)==(x3-x2))||((x4-x3)==(x3-x2)))
cout<<x1<<" "<<x2<<" "<<x3<<" "<<x4<<" "<<x4+x3-x2<<endl;
if(((x3/x2)==(x2/x1))||((x4/x3)==(x3/x2)))
cout<<x1<<" "<<x2<<" "<<x3<<" "<<x4<<" "<<x4*(x2/x1)<<endl;}}
 
 
我的程式哪裡錯了.... 
#8462: Re:wa......


eddie2003 (EVER SUN)


#include
using namespace std;
int main(){
int t,x1,x2,x3,x4,x5;
while(cin>>t,t--){
cin>>x1>>x2>>x3>>x4;
if(((x2-x1)==(x3-x2))||((x4-x3)==(x3-x2)))
cout<
if(((x3/x2)==(x2/x1))||((x4/x3)==(x3/x2)))
cout<
 
 
我的程式哪裡錯了.... 

 第一行是數列的數目t(0 <= t <= 20)
請問你要如何判斷 
#8463: Re:wa......


eddie2003 (EVER SUN)


#include
using namespace std;
int main(){
int t,x1,x2,x3,x4,x5;
while(cin>>t,t--){
cin>>x1>>x2>>x3>>x4;
if(((x2-x1)==(x3-x2))||((x4-x3)==(x3-x2)))
cout<
if(((x3/x2)==(x2/x1))||((x4/x3)==(x3/x2)))
cout<
 
 
我的程式哪裡錯了.... 


 第一行是數列的數目t(0 <= t <= 20)
請問你要如何判斷 
第一次留言有誤請見諒