SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int R1, X1, Y1;
  6. int R2, X2, Y2;
  7.  
  8. double dist(int X1, int Y1, int X2, int Y2) {
  9.     return hypot(abs(X1 - X2), abs(Y1 - Y2));
  10. }
  11.  
  12. int main() {
  13.     // freopen("in", "r", stdin);
  14.     // freopen("out", "w", stdout);
  15.  
  16.     while (cin >> R1 >> X1 >> Y1 >> R2 >> X2 >> Y2) {
  17.         if (R1 >= R2 + dist(X1, Y1, X2, Y2)) cout << "RICO" << endl;
  18.         else cout << "MORTO" << endl;
  19.     }
  20.  
  21.     return 0;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top