Submission #9602537


Source Code Expand

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

import numpy as np

N = int(readline())
P = np.array(read().split(),np.int32)

Q = np.minimum.accumulate(P)

answer = np.count_nonzero(P <= Q)

print(answer)

Submission Info

Submission Time
Task C - Low Elements
User maspy
Language Python (3.4.3)
Score 300
Code Size 288 Byte
Status AC
Exec Time 315 ms
Memory 22688 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 5
AC × 20
Set Name Test Cases
Sample 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 00-sample-04.txt, 00-sample-05.txt
All 00-sample-01.txt, 00-sample-02.txt, 00-sample-03.txt, 00-sample-04.txt, 00-sample-05.txt, dec.txt, inc.txt, killer_01.txt, killer_02.txt, killer_03.txt, rand_01.txt, rand_02.txt, rand_03.txt, rand_04.txt, rand_05.txt, small_01.txt, small_02.txt, small_03.txt, small_04.txt, small_05.txt
Case Name Status Exec Time Memory
00-sample-01.txt AC 315 ms 21704 KB
00-sample-02.txt AC 147 ms 12428 KB
00-sample-03.txt AC 147 ms 12300 KB
00-sample-04.txt AC 148 ms 12428 KB
00-sample-05.txt AC 148 ms 12428 KB
dec.txt AC 186 ms 22676 KB
inc.txt AC 184 ms 22676 KB
killer_01.txt AC 184 ms 22688 KB
killer_02.txt AC 184 ms 22676 KB
killer_03.txt AC 183 ms 22676 KB
rand_01.txt AC 185 ms 22676 KB
rand_02.txt AC 186 ms 22676 KB
rand_03.txt AC 184 ms 22676 KB
rand_04.txt AC 184 ms 22676 KB
rand_05.txt AC 186 ms 22676 KB
small_01.txt AC 149 ms 12428 KB
small_02.txt AC 145 ms 12428 KB
small_03.txt AC 150 ms 12300 KB
small_04.txt AC 147 ms 12340 KB
small_05.txt AC 148 ms 12300 KB