AC代码:
#include <stdio.h> int main() { double a,b,c; scanf("%lf %lf %lf",&a,&b,&c); if(a>b && a>c){ printf("rabbit\n"); }else if(b>a && b>c){ printf("tortoise no.1\n"); }else if(c>a && c>b){ printf("tortoise no.2\n"); }else if(a==b && a>c){ printf("rabbit\ntortoise no.1\n"); }else if(a==c && a>b){ printf("rabbit\ntortoise no.2\n"); }else if(b==c && b>a){ printf("tortoise no.1\ntortoise no.2\n"); }else{ printf("rabbit\ntortoise no.1\ntortoise no.2\n"); } return 0; }