#include #define endl '\n' using namespace std; int n; int arr[100100]; int main(){ double wut, tuv, tut; // 乌龟到终点的时间 兔子的速度 兔子休息的时间 cin >> wut >> tuv >> tut; // 先求出兔子到终点的时间 double t = 1000.0 / tuv + tut; if(t == wut){ cout << "tie"; } else if(t < wut){ cout << "rabbit"; } else { cout << "turtle"; } cout << endl; cout << fixed << setprecision(2) << t; return 0; }