#include <iostream>
using namespace std;
int main()
{ int a,b,c,d,e,f,i,t;
while(cin >>a>>b>>c>>d)
{
if(d-c==c-b)
{e=d+c-b;
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
}
else
{e=d*c/b;
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
}
}
return 0;
}
#include
using namespace std;
int main()
{ int a,b,c,d,e,f,i,t;
while(cin >>a>>b>>c>>d)
{
if(d-c==c-b)
{e=d+c-b;
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
}
else
{e=d*c/b;
cout<<a<<" "<<b<<" "<<c<<" "<<d<<" "<<e<<endl;
}
}
return 0;
}
還有為何這邊要用到
cin>>t;
for(i=1;i<=t;i++)