Hãy xác định tọa đồ của các đỉnh của △ABC. Biết M(-1;1) là trung điểm cạnh BC và hai cạnh kia có phương trình là x+y-2=0; 2x+6y+3=0
Hãy nhập câu hỏi của bạn vào đây, nếu là tài khoản VIP, bạn sẽ được ưu tiên trả lời.
![](https://rs.olm.vn/images/avt/0.png?1311)
![](https://rs.olm.vn/images/avt/0.png?1311)
uses crt;
const fi='tamgiac.dat';
var f1:text;
a,b,c:array[1..100]of real;
n,i,j,k,dem:integer;
begin
clrscr;
assign(f1,fi); reset(f1);
n:=0;
while not eof(f1) do
begin
inc(n);
readln(f1,a[n],b[n],c[n]);
end;
dem:=0;
for i:=1 to n do
for j:=1 to n do
for k:=1 to n do
if (i=j) and (j=k) then
begin
if (a[i]+b[j]>c[k]) and (a[i]+c[k]>b[j]) and (c[k]+b[j]>a[i]) then
begin
if (a[i]=b[j]) and (a[i]<>c[k]) and (b[j]<>c[k]) then inc(dem);
if (a[i]=c[k]) and (a[i]<>b[j]) and (c[k]<>b[j]) then inc(dem);
if (b[j]=c[k]) and (b[j]<>a[i]) and (c[k]<>a[i]) then inc(dem);
end;
end;
writeln(dem);
readln;
end.
![](https://rs.olm.vn/images/avt/0.png?1311)
I là trung điểm AC \(\Rightarrow C\left(2;-2\right)\)
\(\Rightarrow\overrightarrow{CM}=\left(2;-1\right)\Rightarrow\) đường thẳng BC có dạng:
\(1\left(x-2\right)+2\left(y+2\right)=0\Leftrightarrow x+2y+2=0\)
Đường thẳng AB qua A và vuông góc BC nên nhận \(\left(2;-1\right)\) là 1 vtpt
Phương trình AB:
\(2\left(x+1\right)-1\left(y-2\right)=0\Leftrightarrow2x-y+4=0\)
B là giao điểm AB và BC nên tọa độ là nghiệm:
\(\left\{{}\begin{matrix}x+2y+2=0\\2x-y+4=0\end{matrix}\right.\) \(\Rightarrow B\left(...\right)\)
I là trung điểm BD \(\Rightarrow\left\{{}\begin{matrix}x_D=2x_I-x_B=...\\y_D=2y_I-y_B=...\end{matrix}\right.\)
![](https://rs.olm.vn/images/avt/0.png?1311)
Bạn coi lại đề, 2 đường thẳng xuất phát từ B nhưng lại song song với nhau, điều này hoàn toàn vô lý