#include<iostream>
using namespace std;
int main()
{
int a,b,c,d;
while(cin>>a>>b>>c>>d)
if(a+c==2*b)
{
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<d+d-c<<endl;
}
else if(a*c==b*b)
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<d*d/c<<endl;
system("pause");
return 0;
}
WA line1
我的答案 1 2 4 6 9
正確答案 1 2 3 4 5
不太懂為什麼