提出 #28537389


ソースコード 拡げる

N=int(input())
H=list(map(int, input().split()))

ans=H[0]
for i in range(N-1):
    
    if ans<H[i+1]:
        ans=H[i+1]
    else:
        print(ans)
        exit()
print(ans)

提出情報

提出日時
問題 B - Climbing Takahashi
ユーザ nic_am
言語 Python (3.8.2)
得点 200
コード長 188 Byte
結果 AC
実行時間 69 ms
メモリ 20020 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 20
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
random_01.txt AC 55 ms 15556 KiB
random_02.txt AC 38 ms 13288 KiB
random_03.txt AC 45 ms 13476 KiB
random_04.txt AC 47 ms 15632 KiB
random_05.txt AC 33 ms 12120 KiB
random_06.txt AC 40 ms 15680 KiB
random_07.txt AC 24 ms 10852 KiB
random_08.txt AC 54 ms 17088 KiB
random_09.txt AC 52 ms 18188 KiB
random_10.txt AC 49 ms 19116 KiB
random_11.txt AC 49 ms 17592 KiB
random_12.txt AC 38 ms 12444 KiB
random_13.txt AC 43 ms 15860 KiB
random_14.txt AC 19 ms 9136 KiB
random_15.txt AC 69 ms 19884 KiB
random_16.txt AC 46 ms 20020 KiB
random_17.txt AC 18 ms 9048 KiB
sample_01.txt AC 19 ms 8844 KiB
sample_02.txt AC 18 ms 9080 KiB
sample_03.txt AC 18 ms 8836 KiB