1,Tìm số lớn nhất 2a3b4c ; 4,5,8 và 9
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.



a) \(A=\dfrac{3}{x-1}\)
Điều kiện \(|x-1|\ge0\)
\(\Rightarrow A=\dfrac{3}{x-1}\ge0\)
\(GTNN\left(A\right)=0\) \(\Rightarrow x-1=+\infty\Rightarrow x\rightarrow+\infty\)
b) \(GTLN\left(A\right)\) không có \(\left(A=\dfrac{3}{x-1}\ge0\right)\)

const fi='timmax.inp';
fo='timmax.out';
var f1,f2:text;
st,xauso:ansistring;
d,i,max,x:longint;
begin
assign(f1,fi); reset(f1);
assign(f2,fo); rewrite(f2);
readln(f1,st);
d:=length(st);
xauso:='';
max:=0;
for i:=1 to d do
if st[i] in ['0'..'9'] then xauso:=xauso+st[i]
else begin
val(xauso,x);
if max<=x then max:=x;
xauso:='';
end;
if max=0 then writeln(f2,'-1')
else writeln(f2,max);
close(f1);
close(f2);
end.

so lon nhat co 4 chu so khac nhau la:9876
so lon nhat co 1 chu so la :9
tich cua hai so do la :9876*9=88884

#include <bits/stdc++.h>
using namespace std;
string n;
int main()
{
cin>>n;
d=n.length();
ln=48;
nn=57;
for (i=0; i<=d-1; i++)
{
ln=max(ln,int(n[i]));
nn=min(nn,int(n[i]));
}
cout<<char(ln)<<" "<<char(nn);
return 0;
}