Submission #19465313


Source Code Expand

Copy
N = int(input())
A = [0] * N

tmp = list(map(int, input().split()))
tmp_max = 0
for i in range(len(tmp)):
    tmp_max = max(tmp_max, tmp[i])
    A[i] = tmp_max

tmp_B = list(map(int, input().split()))
c = 0
for i in range(len(tmp_B)):
    c = max(c, tmp_B[i] * A[i])
    print(c)

Submission Info

Submission Time
Task A - Two Sequences 2
User oniku
Language Python (3.8.2)
Score 300
Code Size 294 Byte
Status AC
Exec Time 300 ms
Memory 41008 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 18
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
random_01.txt AC 290 ms 36680 KB
random_02.txt AC 294 ms 40820 KB
random_03.txt AC 300 ms 36516 KB
random_04.txt AC 297 ms 41008 KB
random_05.txt AC 98 ms 16632 KB
random_06.txt AC 36 ms 10088 KB
random_07.txt AC 59 ms 11972 KB
random_08.txt AC 85 ms 15564 KB
random_09.txt AC 143 ms 21996 KB
random_10.txt AC 82 ms 15548 KB
random_11.txt AC 103 ms 17192 KB
random_12.txt AC 41 ms 10136 KB
random_13.txt AC 25 ms 9132 KB
random_14.txt AC 19 ms 8904 KB
random_15.txt AC 24 ms 8896 KB
random_16.txt AC 19 ms 9056 KB
sample_01.txt AC 19 ms 8904 KB
sample_02.txt AC 22 ms 9128 KB