Untitled

mail@pastecode.io avatar
unknown
c_cpp
6 months ago
230 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
	int p, x, y;
	int res = 0;
	int v = 0;

	cin >> p >> x >> y;

	v = (x * 100 + y) * p / 100;

	res = x * 100 + y + v;

	cout << res / 100 << " " << res % 100;
}
Leave a Comment