Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.005 s | 6 KBi |
#2 |
Correcto
|
0.004 s | 12 KBi |
#3 |
Correcto
|
0.004 s | 3 KBi |
#4 |
Correcto
|
0.005 s | 5 KBi |
#5 |
Correcto
|
0.004 s | 3 KBi |
#6 |
Correcto
|
0.006 s | 3 KBi |
#7 |
Correcto
|
0.005 s | 6 KBi |
#8 |
Correcto
|
0.006 s | 22 KBi |
#9 |
Correcto
|
0.006 s | 0 KBi |
#10 |
Correcto
|
0.006 s | 3 KBi |
#include <iostream> using namespace std; #define ll long long ll vector[1000]; int main() { ll n; cin >> n; for (int i = 0; i < n; i++) { cin >> vector[i]; } ll q; cin >> q; while (q--) { ll aux; cin >> aux; ll ans = 0; for (int i = 0; i < n; i++) { if (vector[i] > aux) { ans++; } } cout << ans << endl; } }