Submission #16131335


Source Code Expand

Copy
import sys
import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

A = np.array(read().split(), np.int64)[1:]

B = np.maximum.accumulate(A)
print(np.sum(B - A))

Submission Info

Submission Time
Task C - Step
User maspy
Language Python (3.8.2)
Score 300
Code Size 240 Byte
Status
Exec Time 177 ms
Memory 40020 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
× 2
× 14
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, max_01.txt, max_02.txt, max_03.txt, max_04.txt, max_05.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt 133 ms 26980 KB
max_01.txt 171 ms 39516 KB
max_02.txt 169 ms 39228 KB
max_03.txt 171 ms 39376 KB
max_04.txt 168 ms 40020 KB
max_05.txt 146 ms 31240 KB
random_01.txt 166 ms 39704 KB
random_02.txt 166 ms 38444 KB
random_03.txt 148 ms 32108 KB
random_04.txt 177 ms 39708 KB
random_05.txt 133 ms 29400 KB
random_06.txt 150 ms 32292 KB
sample_01.txt 136 ms 26892 KB
sample_02.txt 129 ms 27032 KB