Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main()
- {
- int tc, caseino = 0;
- double AB, AC, BC, AD, r;
- cin >> tc;
- while(tc--)
- {
- cin >> AB >> AC >> BC >> r;
- double x =sqrt( 1.0 + 1.0 / r);
- printf("Case %d: %lf\n", ++caseino, AB / x);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement