Mọi người làm giúp mình ạ
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.
Câu 1:
const fi='dulieu.dat';
fo='thaythe.out';
var f1,f2:text;
a:array[1..100]of string;
n,d,i,vt:integer;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
n:=0;
while not eof(f1) do
begin
n:=n+1;
readln(f1,a[n]);
end;
for i:=1 to n do
begin
d:=length(a[i]);
vt:=pos('anh',a[i]);
while vt<>0 do
begin
delete(a[i],vt,3);
insert('em',a[i],vt);
vt:=pos('anh',a[i]);
end;
end;
for i:=1 to n do
writeln(f2,a[i]);
close(f1);
close(f2);
end.
Câu 2:
uses crt;
const fi='mang.inp';
fo='sapxep.out';
var f1,f2:text;
a:array[1..100]of integer;
i,n,tam,j:integer;
begin
clrscr;
assign(f1,fi); rewrite(f1);
assign(f2,fo); rewrite(f2);
write('Nhap n='); readln(n);
for i:=1 to n do
begin
write('A[',i,']='); readln(a[i]);
end;
for i:=1 to n do
write(f1,a[i]:4);
for i:=1 to n-1 do
for j:=i+1 to n do
if a[i]>a[j] then
begin
tam:=a[i];
a[i]:=a[j];
a[j]:=tam;
end;
for i:=1 to n do
write(f2,a[i]:4);
close(f1);
close(f2);
end.
Mik ra kết quả luôn nhé.
- Lần lượt:
N(V), N(IV), Al(III), Al(III), Fe(II)
- Gọi CTHH là: \(\overset{\left(II\right)}{Fe_x}\overset{\left(II\right)}{O_y}\)
Ta có: \(II.x=II.y\)
\(\Leftrightarrow\dfrac{x}{y}=\dfrac{II}{II}=\dfrac{1}{1}\Leftrightarrow\left\{{}\begin{matrix}x=1\\y=1\end{matrix}\right.\)
Vậy CTHH là: FeO
11 c)
\(a^2+2\ge2\sqrt{a^2+1}\Leftrightarrow a^2+1-2\sqrt{a^2+1}+1\ge0\Leftrightarrow\left(\sqrt{a^2+1}-1\right)^2\ge0\) (luôn đúng)
12 a) Có a+b+c=1\(\Rightarrow\) (1-a)(1-b)(1-c)= (b+c)(a+c)(a+b) (*)
áp dụng BĐT cô-si: \(\left(b+c\right)\left(a+c\right)\left(a+b\right)\ge2\sqrt{bc}2\sqrt{ac}2\sqrt{ab}=8\sqrt{\left(abc\right)2}=8abc\) ( luôn đúng với mọi a,b,c ko âm )
b) áp dụng BĐT cô-si: \(c\left(a+b\right)\le\dfrac{\left(a+b+c\right)^2}{4}=\dfrac{1}{4}\)
Tương tự: \(a\left(b+c\right)\le\dfrac{1}{4};b\left(c+a\right)\le\dfrac{1}{4}\)
\(\Rightarrow abc\left(a+b\right)\left(b+c\right)\left(c+a\right)\le\dfrac{1}{4}\dfrac{1}{4}\dfrac{1}{4}=\dfrac{1}{64}\)
2/
a/
\(\dfrac{4n+2}{n+1}=\dfrac{4n+4-2}{n+1}=\dfrac{4\left(n+1\right)-2}{n+1}=4-\dfrac{2}{n+1}\)
\(\Rightarrow4n+2⋮n+1\) Khi \(n+1=\left\{-2;-1;1;2\right\}\Rightarrow n=\left\{-3;-2;0;1\right\}\)
b/
\(\Rightarrow a+2=\dfrac{8}{b-1}\left(b\ne1\right)\) (1)
a nguyên => a+2 nguyên \(\Rightarrow8⋮\left(b-1\right)\)
\(\Rightarrow b-1=\left\{-8;-4;-2;-1;1;2;4;8\right\}\)
\(\Rightarrow b=\left\{-7;-3;-1;0;2;3;5;9\right\}\) Thay các giá trị của b vào (1) để tìm a
3/
Gọi số tiền mẹ cho Chi là A \(\Rightarrow100000\le A\le200000\)
Nếu bớt số tiền mẹ cho Chi đi 5000 đồng thì
\(A-5000⋮15000;A-5000⋮8000\)
\(\Rightarrow A-5000=UC\left(8000;15000\right)\) Và \(95000\le A-5000\le195000\)
\(\Rightarrow A-5000=120000\Rightarrow A=125000\)
Câu 5:
\(\dfrac{x}{y}=a\Rightarrow\dfrac{x}{a}=\dfrac{y}{1}=\dfrac{x-y}{a-1}=\dfrac{x+y}{a+1}\)
\(\Rightarrow\dfrac{x+y}{x-y}=\dfrac{a+1}{a-1}\)
Câu 6:
\(9x=5y\Rightarrow\dfrac{x}{5}=\dfrac{y}{9}\)
\(\Rightarrow\dfrac{x}{5}=\dfrac{y}{9}=\dfrac{3x}{15}=\dfrac{2y}{18}=\dfrac{3x-2y}{15-18}=\dfrac{12}{-3}=-4\)
\(\Rightarrow\left\{{}\begin{matrix}x=\left(-4\right).5=-20\\y=\left(-4\right).9=-36\end{matrix}\right.\)
Câu 7:
\(\dfrac{x}{-5}=\dfrac{y}{7}=\dfrac{x+y}{-5+7}=\dfrac{-10}{2}=-5\)
\(\Rightarrow\left\{{}\begin{matrix}x=\left(-5\right).\left(-5\right)=25\\y=\left(-5\right).7=-35\end{matrix}\right.\)
a: \(A=\left(\sqrt{3}-2+\sqrt{2}\right)-\sqrt{3}+\sqrt{2}=-2+2\sqrt{2}\)
\(B=\dfrac{x+2\sqrt{x}+8+2\sqrt{x}-8}{x-16}=\dfrac{x+4\sqrt{x}}{x-16}=\dfrac{\sqrt{x}}{\sqrt{x}-4}\)
b: Để B-1/2A=0 thì B=1/2A
\(\Leftrightarrow\dfrac{\sqrt{x}}{\sqrt{x}-4}=\sqrt{2}-1\)
\(\Leftrightarrow\sqrt{x}=\sqrt{2}\sqrt{x}-\sqrt{x}-4\sqrt{2}+4\)
\(\Leftrightarrow\sqrt{x}\left(2-\sqrt{2}\right)=-4\sqrt{2}+4\)
\(\Leftrightarrow\sqrt{x}=-2\sqrt{2}\)(vô lý)