Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.006 s | 1 KBi |
#2 |
Correcto
|
0.006 s | 1 KBi |
#3 |
Correcto
|
0.006 s | 1 KBi |
#4 |
Correcto
|
0.006 s | 3 KBi |
#5 |
Correcto
|
0.006 s | 4 KBi |
#6 |
Correcto
|
0.006 s | 1 KBi |
#7 |
Correcto
|
0.04 s | 2 KBi |
#8 |
Correcto
|
0.045 s | 2 KBi |
#9 |
Correcto
|
0.051 s | 1 KBi |
#10 |
Correcto
|
0.046 s | 2 KBi |
#11 |
Correcto
|
0.072 s | 3 KBi |
#12 |
Correcto
|
0.067 s | 3 KBi |
#13 |
Correcto
|
0.05 s | 2 KBi |
#14 |
Correcto
|
0.056 s | 2 KBi |
#15 |
Correcto
|
0.071 s | 2 KBi |
#16 |
Correcto
|
0.081 s | 2 KBi |
#17 |
Correcto
|
0.085 s | 3 KBi |
#18 |
Correcto
|
0.058 s | 2 KBi |
#19 |
Correcto
|
0.05 s | 2 KBi |
#20 |
Correcto
|
0.049 s | 2 KBi |
#21 |
Correcto
|
0.046 s | 2 KBi |
#22 |
Correcto
|
0.09 s | 2 KBi |
#23 |
Correcto
|
0.092 s | 2 KBi |
#24 |
Correcto
|
0.089 s | 2 KBi |
#25 |
Correcto
|
0.096 s | 2 KBi |
#26 |
Correcto
|
0.103 s | 2 KBi |
#27 |
Correcto
|
0.094 s | 2 KBi |
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int N; cin >> N; int array[N]; for(int i =0;i<N;i++) cin >> array[i]; int n = sizeof(array) / sizeof(array[0]); sort(array, array + n); //quicksort(array, 0,N-1); for(int i =0;i<N;i++) cout << array[i] << " "; return 0; }