1882021-02-04 00:10:12mraronZenehallgatáspython3Time limit exceeded 15/50298ms40236 KiB
import itertools
import bisect

input()
ido = list(itertools.accumulate(int(s) for s in input().split()))
T = ido[-1]
print(*(bisect.bisect_right(ido, (int(s) - 1) % T) + 1 for s in input().split()))
SubtaskSumTestVerdictTimeMemory
base15/50
1Accepted0/037ms13412 KiB
2Time limit exceeded0/0209ms40236 KiB
3Accepted2/229ms13776 KiB
4Accepted2/230ms13668 KiB
5Accepted2/230ms13736 KiB
6Accepted3/329ms13692 KiB
7Accepted3/328ms13736 KiB
8Accepted3/339ms13724 KiB
9Time limit exceeded0/2246ms17432 KiB
10Time limit exceeded0/2298ms17428 KiB
11Runtime error0/2166ms39264 KiB
12Time limit exceeded0/2203ms39268 KiB
13Time limit exceeded0/2238ms17412 KiB
14Time limit exceeded0/2211ms39780 KiB
15Time limit exceeded0/2275ms39952 KiB
16Time limit exceeded0/2222ms40168 KiB
17Runtime error0/279ms39024 KiB
18Time limit exceeded0/2279ms39864 KiB
19Time limit exceeded0/2234ms17220 KiB
20Time limit exceeded0/2207ms17284 KiB
21Time limit exceeded0/2259ms17468 KiB
22Time limit exceeded0/3212ms17256 KiB
23Time limit exceeded0/3219ms17664 KiB
24Time limit exceeded0/3222ms17884 KiB