三角形最小边对应最小角, 因为三边满足勾股定理,即是直角三角形 所以 最小角的正弦值=最小边/最大边
#includeint main(){int a, b, c, t;scanf("%d%d%d", &a, &b, &c);if(a t=a; a=c; c=t;}if(b//找a和c最大公因数if( a % i == 0 && c % i == 0){t = i;}}printf("%d/%d", c/t, a/t); //a和c约分,化为最简return 0;}关于三数排序,有一道对应的题,