读题太垃圾了。。。感觉脑子有问题
代码:
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
#include <vector>
#include <map>
#define ll long long
using namespace std;
int n,m;
int main(){
int a,b,c,d;
while(cin>>a>>b>>c>>d){
if(c>2*d||d>=b||d>2*c) //d>2c 最小车装不下d,2d<c不喜欢最小车,d>=b喜欢中车的情形
cout<<"-1"<<endl;
else{
cout<<a*2<<endl;
cout<<2*b<<endl;
cout<<max(c,d)<<endl;
}
}
return 0;
}