Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.005 s | 28 KBi |
#2 |
Correcto
|
0.006 s | 8 KBi |
#3 |
Correcto
|
0.008 s | 65 KBi |
#4 |
Correcto
|
0.005 s | 6 KBi |
#5 |
Correcto
|
0.007 s | 12 KBi |
#6 |
Correcto
|
0.005 s | 7 KBi |
#7 |
Correcto
|
0.005 s | 23 KBi |
#8 |
Correcto
|
0.009 s | 12 KBi |
#9 |
Correcto
|
0.005 s | 19 KBi |
#10 |
Correcto
|
0.006 s | 15 KBi |
#include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; vector<int> v(n); for(int i = 0; i < n; ++i){ cin>>v[i]; } int q; cin>>q; for(int i = 0; i < q; ++i){ int x; cin>>x; int cont = 0; for(int j = 0; j < n; ++j){ if(v[j] > x)cont++; } cout << cont <<"\n"; } return 0; }