Submission #2871471


Source Code Expand

import numpy as np

n=int(input())
a=np.array([int(x) for x in input().split()])
sm=0
for i in range(n):
	for j in range(i,n):
		sm+=np.min(a[i:j+1])

print(sm)

Submission Info

Submission Time
Task B - Minimum Sum
User kilattoeruru
Language Python (3.4.3)
Score 0
Code Size 169 Byte
Status TLE
Exec Time 2109 ms
Memory 34016 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 400
Status
AC × 3
AC × 7
TLE × 6
Set Name Test Cases
Sample example0, example1, example2
All corner0, corner1, corner2, corner3, example0, example1, example2, maxrand0, maxrand1, maxrand2, rand0, rand1, rand2
Case Name Status Exec Time Memory
corner0 TLE 2108 ms 33812 KB
corner1 TLE 2109 ms 33816 KB
corner2 AC 147 ms 12384 KB
corner3 TLE 2108 ms 33812 KB
example0 AC 149 ms 12384 KB
example1 AC 148 ms 12260 KB
example2 AC 149 ms 12384 KB
maxrand0 TLE 2109 ms 34016 KB
maxrand1 TLE 2109 ms 33808 KB
maxrand2 TLE 2109 ms 33724 KB
rand0 AC 471 ms 12384 KB
rand1 AC 149 ms 12260 KB
rand2 AC 172 ms 12384 KB