Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <cstring>
- #include <vector>
- #include <algorithm>
- #include <math.h>
- #include <iomanip>
- #include <ctime>
- using namespace std;
- int main()
- {
- int r, h, w;
- int ans = 0;
- cin >> r >> h >> w;
- while (2*r < sqrt(h*h + w*w))
- {
- ans++;
- if (h > w)
- {
- h = h/2;
- }
- else
- {
- w = w/2;
- }
- }
- cout << ans << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement