Advertisement
Guest User

Untitled

a guest
Oct 21st, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <iostream>
  2. #include <algorithm>
  3. #include <cmath>
  4. using namespace std;
  5.  
  6. int main()
  7. { int n,x1,x2,y1,y2,b,i,l1;
  8. const double PI =3.141592653589793238463;
  9. double d,l,x;
  10. cin>>x1>>y1;
  11. cin>>x2>>y2;
  12. cin>>b;
  13. l =0;
  14. x = 0;
  15. n = 0;
  16. i =0;
  17. double a = 25*PI/180;
  18. x = sqrt(2-2*cos(25*180/PI));
  19. d = sqrt((x1-x2)^2+(y1-y2)^2);
  20. while ((l+x)<=d){
  21. i++;
  22. l+=x;
  23. }
  24. if ((d-l)<0000000.1){
  25.  
  26. }
  27. else{
  28. l1 = l-x;
  29. }
  30. return 0;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement