Submission #28539573


Source Code Expand

n = int(input())
h = [int(v) for v in input().split()]

for i in range(len(h)):
  if (i + 1) == len(h):
    result = h[i]
    break

  if h[i + 1] > h[i]:
    continue
  else:
    result = h[i]
    break

print(result)

Submission Info

Submission Time
Task B - Climbing Takahashi
User yusuke4869
Language PyPy3 (7.3.0)
Score 200
Code Size 234 Byte
Status AC
Exec Time 101 ms
Memory 84964 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 20
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.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, random_17.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
random_01.txt AC 101 ms 75528 KiB
random_02.txt AC 70 ms 72608 KiB
random_03.txt AC 68 ms 72872 KiB
random_04.txt AC 75 ms 75484 KiB
random_05.txt AC 70 ms 70492 KiB
random_06.txt AC 75 ms 76788 KiB
random_07.txt AC 66 ms 68924 KiB
random_08.txt AC 77 ms 77824 KiB
random_09.txt AC 83 ms 82384 KiB
random_10.txt AC 81 ms 83012 KiB
random_11.txt AC 76 ms 77980 KiB
random_12.txt AC 68 ms 71216 KiB
random_13.txt AC 76 ms 76504 KiB
random_14.txt AC 59 ms 65472 KiB
random_15.txt AC 83 ms 84804 KiB
random_16.txt AC 83 ms 84964 KiB
random_17.txt AC 55 ms 61484 KiB
sample_01.txt AC 54 ms 61544 KiB
sample_02.txt AC 56 ms 61616 KiB
sample_03.txt AC 55 ms 61420 KiB