Untitled
unknown
c_cpp
2 years ago
230 B
3
Indexable
#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; }
Editor is loading...
Leave a Comment