186022025-10-28 13:42:10WellLeopardUsually20G (40 pont)python3Wrong answer 0/40119ms15664 KiB
n, q = map(int, input().split())
t = tuple(map(int, input().split()))
m = list(int(input()) for _ in range(q))

maxti = 0
maxt = list()

for i in range(n):
    if maxti < t[i]:
        maxti = t[i]
    maxt.append(maxti)
print(maxt)
output = 0
i = 0
for mi in m:
    while mi >= maxt[i]:
        i += 1
    print(i+1)
SubtaskSumTestVerdictTimeMemory
base0/40
1Wrong answer0/016ms3312 KiB
2Wrong answer0/0105ms15144 KiB
3Wrong answer0/216ms3124 KiB
4Wrong answer0/216ms3312 KiB
5Wrong answer0/217ms3136 KiB
6Wrong answer0/219ms3268 KiB
7Wrong answer0/319ms3380 KiB
8Wrong answer0/3112ms15600 KiB
9Wrong answer0/3115ms15604 KiB
10Wrong answer0/3112ms15664 KiB
11Wrong answer0/4119ms15664 KiB
12Wrong answer0/4101ms15664 KiB
13Wrong answer0/4112ms15624 KiB
14Wrong answer0/4109ms15456 KiB
15Wrong answer0/4115ms15664 KiB