Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int pipeCount;
- cin >> pipeCount;
- int* checkup = new int[pipeCount];
- int* installation = new int[pipeCount];
- for (int i = 0; i < pipeCount; i++) {
- cin >> checkup[i];
- }
- for (int i = 0; i < pipeCount; i++) {
- cin >> installation[i];
- }
- for (int i = 0; i < pipeCount; i++) {
- cout << installation[i] / (installation[i] - checkup[i]) << ' ';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement