Saleh127

Light oj(LO) 1022

Mar 21st, 2021
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; for(int cs=1;cs<=t;cs++)
  5. #define pi acos(-1)
  6. int main()
  7. {
  8. ios_base::sync_with_stdio(0);
  9. cin.tie(0);cout.tie(0);
  10.  
  11. test
  12. {
  13.  
  14. double r,a,b,c;
  15.  
  16. cin>>r;
  17.  
  18. c=pi*r*r;
  19.  
  20. b=4*r*r;
  21. a=b-c;
  22. cout<<"Case "<<cs<<": ";
  23. cout<<fixed<<setprecision(2)<<a<<endl;
  24.  
  25. }
  26.  
  27.  
  28. return 0;
  29. }
  30.  
Advertisement
Add Comment
Please, Sign In to add comment