time limit: 1000 ms memory limit: 65536 kib
submit
statistic
discuss
problem description
給出兩個三角形的三條邊,判斷是否相似。
input
多組資料,給出6正個整數,a1,b1,c1,a2,b2,c2,分別代表兩個三角形。(邊長小於100且無序)
output
如果相似輸出yes,如果不相似輸出no,如果三邊組不成三角形也輸出no。
sample input
1 2 3 2 4 6sample output3 4 5 6 8 10
3 4 5 7 8 10
nohintyesno
source
#includeint judge(double a, double b, double c)
else
else
flag = 0;
} return flag;}
int main()}}
for (int m = 0; m < 2; m++)//氣泡排序}}
if (a[0] > b[0])//判斷兩個三角形對應邊哪個較大
else
}else
}return 0;
}
相似三角形
time limit 1000 ms memory limit 65536 kib problem description 給出兩個三角形的三條邊,判斷是否相似。input 多組資料,給出6正個整數,a1,b1,c1,a2,b2,c2,分別代表兩個三角形。邊長小於100且無序 output 如果相似...
相似三角形
problem description 給出兩個三角形的三條邊,判斷是否相似。input 多組資料,給出6正個整數,a1,b1,c1,a2,b2,c2,分別代表兩個三角形。邊長小於100且無序 output 如果相似輸出yes,如果不相似輸出no,如果三邊組不成三角形也輸出no。example in...
sdut 相似三角形
problem description 給出兩個三角形的三條邊,判斷是否相似。input 多組資料,給出6正個整數,a1,b1,c1,a2,b2,c2,分別代表兩個三角形。邊長小於100且無序 output 如果相似輸出yes,如果不相似輸出no,如果三邊組不成三角形也輸出no。example in...