我看到有人0M就解出來了
可是我要4M
QAQ
要如何變小 可以請各位大大教我嗎?
#include <iostream>
using namespace std;
int main() {
int a,b,c,d,n;
cin>>n;
for(;n>0;n--){
cin>>a>>b>>c>>d;
if((b/a)==(d/c))
{cout <<a<<" "<<b<<" "<<c<<" "<<d<<" "<<d*d/c<<endl;
}
else
{cout <<a<<" "<<b<<" "<<c<<" "<<d<<" "<<d+d-c<<endl;
}
}
}