Caso # | Resultado | Tiempo | Memoria |
---|---|---|---|
#1 |
Correcto
|
0.007 s | 1 KBi |
#2 |
Correcto
|
0.006 s | 1 KBi |
#3 |
Correcto
|
0.002 s | 2 KBi |
#4 |
Correcto
|
0.004 s | 2 KBi |
#5 |
Correcto
|
0.009 s | 1 KBi |
#6 |
Correcto
|
0.004 s | 2 KBi |
#7 |
Correcto
|
0.003 s | 2 KBi |
#8 |
Correcto
|
0.004 s | 22 KBi |
#9 |
Correcto
|
0.002 s | 2 KBi |
#10 |
Correcto
|
0.008 s | 2 KBi |
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main(){ int n; cin >> n; vector<ll> arr(n); for(int i = 0; i < n; ++i) cin >> arr[i]; int c; cin >> c; while(c--){ ll k, Q = 0; cin >> k; for(ll i: arr) Q += ((i > k) ? 1: 0); cout << Q << "\n"; } return 0; }