input
3
3 14 9 8 -2 1
3 9 14 8 1 -2
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.
#include <bits/stdc++.h>
using namespace std;
long long n,a[1000001];
int main()
{
cin>>n;
for(int i=1;i<=n*2;i++)
{
cin>>a[i];
}
sort(a+1,a+n+1);
sort(a+n+1,a+2*n+1,greater<long long>());
for(int i=1;i<=n*2;i++)
{
cout<<a[i]<<" ";
}
return 0;
}
a. \(2^2.2^3.2^{15}=2^{20}\)
\(3^{24}.3^{14}=3^{38}\)
\(c.5^{16}.5^9=5^{25}\)
\(d.3^{12}.3^{15}=3^{27}\)
a: \(\dfrac{-8}{3}\cdot\dfrac{15}{24}=\dfrac{-8}{24}\cdot\dfrac{15}{3}=\dfrac{-1}{3}\cdot5=-\dfrac{5}{3}\)
b: \(=\dfrac{3}{4}\cdot\dfrac{1}{-9}=\dfrac{-1}{12}\)
c: \(x=-\dfrac{7}{6}+\dfrac{5}{8}=-\dfrac{13}{24}\)
d: \(x=-\dfrac{14}{25}-\dfrac{3}{4}=\dfrac{-56-75}{100}=\dfrac{-131}{100}\)
\(a)\frac{2}{5}+\frac{3}{10}-\frac{1}{2}\)
\(=\frac{4}{10}+\frac{3}{10}-\frac{5}{10}=\frac{1}{5}\)
\(b)\frac{8}{11}+\frac{8}{33}.\frac{3}{4}\)
\(=\frac{8}{11}+\frac{2}{11}=\frac{10}{11}\)
\(c)\frac{7}{9}.\frac{3}{14}:\frac{5}{8}\)
\(=\frac{1}{6}:\frac{5}{8}=\frac{4}{15}\)
\(d)\frac{5}{12}-\frac{7}{32}:\frac{21}{16}\)
\(=\frac{5}{12}-\frac{1}{6}=\frac{5}{12}-\frac{2}{12}=\frac{1}{4}\)
2/5 + 3/10 - 1/2
= 4/10 + 3/10 -5/10
=2/10
=1/5.
8/11 + 8/33 *3/4
=8/11 + 2/11
=10/11
7/9 *3/14 : 5/8
=1/3 *1/2 : 5/8
=1/6: 5/8
=1/3 * 4/5
=4/15
5/12 - 7/32 : 21/16
=5/12 - 1/6
=5/12 - 2/12
=1/4
a: =>x=-7/6+5/8=-13/24
b: =>x=-14/25-3/4=-131/100
c: \(x=\dfrac{-33}{26}:\dfrac{-9}{13}=\dfrac{33}{26}\cdot\dfrac{13}{9}=\dfrac{11}{3}\cdot\dfrac{1}{2}=\dfrac{11}{6}\)
d: \(x=\dfrac{4}{9}:\dfrac{5}{3}=\dfrac{4}{9}\cdot\dfrac{3}{5}=\dfrac{12}{45}=\dfrac{4}{15}\)
#include <bits/stdc++.h>
using namespace std;
long long n,a[1000001];
int main()
{
cin>>n;
for(int i=1;i<=n*2;i++)
{
cin>>a[i];
}
sort(a+1,a+n+1);
sort(a+n+1,a+2*n+1,greater<long long>());
for(int i=1;i<=n*2;i++)
{
cout<<a[i]<<" ";
}
return 0;
}