Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <string>
- #include <math.h>
- #include <algorithm>
- #include <vector>
- #include <set>
- #include <map>
- #include <sstream>
- #include <queue>
- #include <stdint.h>
- using namespace std;
- int main()
- {
- double t;
- int l, h;
- cout.setf(ios::fixed);
- cout.precision(5);
- cin >> l >> h >> t;
- if(l%h==0)
- cout << l / h*t << " " << + (l / h)*t;
- else
- cout << l / h*t << " " << +(l / h)*t+t;
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment