Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <cmath>
  4.  
  5. using namespace std;
  6.  
  7. struct punct{int x, y, dmax;};
  8. punct V[1005];
  9. int dp[2][1005];
  10.  
  11. double dist (punct A, punct B) {
  12. return sqrt((A.x - B.x) * (A.x - B.x) + (A.y - B.y) * (A.y - B.y));
  13. }
  14.  
  15. double arie (punct A, punct B, punct C) {
  16. return dist(A, C) * B.dmax / 2;
  17. }
  18. int main()
  19. {
  20. freopen("mosia.in", "r", stdin);
  21. freopen("mosia.out", "w", stdout);
  22. int n;
  23. scanf("%d", &n);
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement