Untitled

Anonymous
plain_text
12/22/2022 2:18 PM
280 B
23
Indexable
#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;

}
Editor is loading...