為什麼一直WA?
我自己測試都OK呀!!!
如下:
------------------------------
#include <iostream>
using namespace std;
int main(){
int t;
int a, b, c, d;
//int n=0, m=0;
while(cin >> t){
for(int i=1; i<=t; i++){
cin >> a >> b >> c >> d;
if((b-a) == (c-b)){
cout << a << " "<< b << " " << c << " " << d << " " << d+(c-b) << endl;
cin >> t;
}
else if((b/a) == (c/b)){
cout << a << " " << b << " " << c << " " << d << " " << d*(c/b) << endl;
cin >> t;
}
}
}
return 0;
}
------------------------------
我寫了兩個版本,結果都不行??
WHY?