Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
209 B
0
Indexable
Never
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
	float p, a, b, c;
	cin >> p;
	cin >> a >> b >> c;
	p = p / (a + b + c);
	cout << a * p << ' ' << b * p << ' ' << c * p;

}