#include <iostream>
using namespace std;
int main()
{
int f,i;
cin >>f;
for(i=1; i<=f; i++)
{
int a,b,c,d,e;
cin >> a >> b >> c >> d;
if(b-a == c-b == (d-b)/2)
{
e= b-a+d;
cout << a << " " << b << " " << c << " " << d << " " << e << endl;
}
else if(b/a == c/b)
{
e= b/a*d;
cout << a << " " << b << " " << c << " " << d << " " << e << endl;
}
else
{
cout << "false" <<endl;
}
}
return 0;
}
if(b-a == c-b == (d-b)/2)
你這裡的問題,跟我在這則提到的一樣,我就不打第二次了: https://zerojudge.tw/ShowThread?postid=22564&reply=22562#22564
if(b-a == c-b == (d-b)/2)你這裡的問題,跟我在這則提到的一樣,我就不打第二次了: https://zerojudge.tw/ShowThread?postid=22564&reply=22562#22564
非常感謝您的解答