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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.008 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.014 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.009 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.011 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.01 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.01 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.014 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.011 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.008 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 20, in <module> results = process_queries(nums, queries) File "script.py", line 5, in process_queries results.append() TypeError: append() takes exactly one argument (0 given) |
0.009 s | 3 KBi |
def process_queries(nums, queries): results = [] for x in queries: ans = sum(1 for num in nums if num > x) results.append() return results # read input values n = int(input()) nums = list(map(int, input().split())) c = int(input()) # read and process queries queries = [] for _ in range(c): x = int(input()) queries.append(x) # Process queries and print results results = process_queries(nums, queries) for ans in results: print(ans)