Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.007 s | 1 KBi |
#2 |
Correcto
|
0.006 s | 1 KBi |
#3 |
Correcto
|
0.004 s | 1 KBi |
#4 |
Correcto
|
0.006 s | 1 KBi |
#5 |
Correcto
|
0.006 s | 2 KBi |
#6 |
Correcto
|
0.007 s | 3 KBi |
#7 |
Correcto
|
0.058 s | 2 KBi |
#8 |
Correcto
|
0.055 s | 2 KBi |
#9 |
Correcto
|
0.052 s | 2 KBi |
#10 |
Correcto
|
0.062 s | 2 KBi |
#11 |
Correcto
|
0.073 s | 3 KBi |
#12 |
Correcto
|
0.069 s | 3 KBi |
#13 |
Correcto
|
0.074 s | 2 KBi |
#14 |
Correcto
|
0.057 s | 3 KBi |
#15 |
Correcto
|
0.105 s | 3 KBi |
#16 |
Correcto
|
0.087 s | 3 KBi |
#17 |
Correcto
|
0.108 s | 3 KBi |
#18 |
Correcto
|
0.072 s | 2 KBi |
#19 |
Correcto
|
0.05 s | 2 KBi |
#20 |
Correcto
|
0.084 s | 1 KBi |
#21 |
Correcto
|
0.068 s | 2 KBi |
#22 |
Correcto
|
0.152 s | 3 KBi |
#23 |
Correcto
|
0.184 s | 2 KBi |
#24 |
Correcto
|
0.161 s | 3 KBi |
#25 |
Correcto
|
0.151 s | 3 KBi |
#26 |
Correcto
|
0.142 s | 2 KBi |
#27 |
Correcto
|
0.158 s | 3 KBi |
#include<bits/stdc++.h> using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(0); int n; cin >> n; int numero; vector<int> v(n); for(int i=0;i<n;++i){ cin >> numero; v[i]=numero; } sort(v.begin(),v.end()); for(int i=0;i<n;++i){ cout << v[i] << " "; } return 0; }