█████████ ████ ███░░░░░███ ░░███ ███ ░░░ ██████ ███████ ██████ ██████ ░███ ███░░███ ███░░███ ███░░███ ███░░███ ░███ ░███ ░███░███ ░███ ░███████ ░███ ░███ ░░███ ███░███ ░███░███ ░███ ░███░░░ ░███ ░███ ░░█████████ ░░██████ ░░████████░░██████ ░░██████ ░░░░░░░░░ ░░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░

Envío 4140

Problema 0x62 - Contar elementos mayores a X en un arreglo pequeño

Caso # Resultado Tiempo Memoria
#1
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '3 4 1 2 2'
0.02 s 3 KBi
#2
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '10 10 4 9 1 4 7 6 9 2'
0.038 s 3 KBi
#3
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '10 10 10 10 10 10 10 10 10 10'
0.017 s 3 KBi
#4
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '10 10 10 10 10 10 10 10 10 10'
0.019 s 3 KBi
#5
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '10 10 10 10 10 10 10 10 10 10'
0.035 s 3 KBi
#6
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '-70 36 -50 -57 81 -75 -19 -39 83 -81 -40 27 -65 8 62 -57 -58 -81 99 -88'
0.02 s 3 KBi
#7
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '-7 5 9 0 -2 -1 3 9 -5 -10 -2 -5 5 -1 -8 5 2 -6 0 3 -4 -8 6 -3 10 10 3 2 6 -7 -6 -10 3 3 -3 2 -9 5 -9 -7 -6 3 5 -8 7 -4 -10 1 -1 3 -9 5 1 -2 -3 -2 0 0 -5 8 8 5 -4 -7 -6 9 0 -5 4 8 7 -9 -5 9 4 0 1 -3 -
0.02 s 3 KBi
#8
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '-5 0 3 4 10 9 5 -6 3 -10 -5 -2 -6 -5 -2 -9 0 -2 -9 -7 0 -2 1 3 3 3 -6 -8 1 -5 3 -6 -6 -8 5 2 8 -8 -7 -4 1 5 -5 -2 8 9 5 -7 4 2 5 8 -10 -7 6 8 10 -6 -6 -6 6 -9 -7 -9 -1 -9 -7 8 -9 -5 1 5 -4 -6 4 6 -5 
0.018 s 3 KBi
#9
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '-791856716 122082374 -943843306 -400501447 -148814372 935389527 -549163235 -106475294 354231192 -177712433 213461781 708439480 231235653 -858213617 -784671696 -897053853 403359890 -231193309 93200111
0.02 s 3 KBi
#10
Error en tiempo de ejecución (NZEC)
Exited with error status 1
Traceback (most recent call last):
  File "script.py", line 2, in <module>
    n=int(input())
ValueError: invalid literal for int() with base 10: '181942765 -185083662 649890511 -125178365 -291746193 900836905 -662134803 -51907628 366702349 -107661519 555757180 597414864 -134504615 910468282 427870586 987166615 -87682071 292702690 -410305997 61
0.022 s 3 KBi
Puntos totales: 0 / 100

Código

n=int(input())
n=int(input())
lista=[]
s=0
a = [int(i) for i in input().split()]
n_c=int(input())
c = [int(i) for i in input().split()]
for i in c:  
    for j in a:
        if j>i:
            s=s+1
    lista.append(s)
    s=0
print(lista)