Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int R1, X1, Y1;
- int R2, X2, Y2;
- double dist(int X1, int Y1, int X2, int Y2) {
- return hypot(abs(X1 - X2), abs(Y1 - Y2));
- }
- int main() {
- // freopen("in", "r", stdin);
- // freopen("out", "w", stdout);
- while (cin >> R1 >> X1 >> Y1 >> R2 >> X2 >> Y2) {
- if (R1 >= R2 + dist(X1, Y1, X2, Y2)) cout << "RICO" << endl;
- else cout << "MORTO" << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement