Envío 6826
- Autor: sur
- Fecha: 2022-12-22 21:17:24 UTC (Hace 12 meses)
Caso # |
Resultado |
Tiempo |
Memoria |
#1 |

Correcto
|
0.016 s
|
3 KBi |
#2 |

Correcto
|
0.018 s
|
3 KBi |
#3 |

Correcto
|
0.026 s
|
3 KBi |
#4 |

Correcto
|
0.019 s
|
3 KBi |
#5 |

Correcto
|
0.017 s
|
3 KBi |
#6 |

Correcto
|
0.018 s
|
3 KBi |
#7 |

Correcto
|
0.029 s
|
3 KBi |
#8 |

Correcto
|
0.018 s
|
3 KBi |
#9 |

Correcto
|
0.022 s
|
3 KBi |
#10 |

Correcto
|
0.02 s
|
3 KBi |
Puntos totales: 100 / 100
Código
n = int(input())
elements = list(map(int, input().split()))
c = int(input())
# Process each query
for i in range(c):
# Read the query value
x = int(input())
# Count the number of elements greater than x
count = 0
for element in elements:
if element > x:
count += 1
print(count)