結果

問題 No.365 ジェンガソート
ユーザー cherrypi59cherrypi59
提出日時 2018-06-19 17:11:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 19,636 KB
最終ジャッジ日時 2023-09-13 07:09:29
合計ジャッジ時間 3,162 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,792 KB
testcase_01 AC 16 ms
7,876 KB
testcase_02 AC 15 ms
7,888 KB
testcase_03 AC 15 ms
7,888 KB
testcase_04 AC 17 ms
7,880 KB
testcase_05 AC 16 ms
7,840 KB
testcase_06 AC 16 ms
7,804 KB
testcase_07 AC 16 ms
7,936 KB
testcase_08 AC 15 ms
7,936 KB
testcase_09 AC 16 ms
7,932 KB
testcase_10 AC 16 ms
7,804 KB
testcase_11 AC 18 ms
7,820 KB
testcase_12 AC 16 ms
7,824 KB
testcase_13 AC 16 ms
7,852 KB
testcase_14 AC 16 ms
7,788 KB
testcase_15 AC 16 ms
7,832 KB
testcase_16 AC 43 ms
16,976 KB
testcase_17 AC 50 ms
18,908 KB
testcase_18 AC 19 ms
9,044 KB
testcase_19 AC 49 ms
18,684 KB
testcase_20 AC 27 ms
11,780 KB
testcase_21 AC 24 ms
10,636 KB
testcase_22 AC 44 ms
16,352 KB
testcase_23 AC 31 ms
13,432 KB
testcase_24 AC 42 ms
16,348 KB
testcase_25 AC 24 ms
10,344 KB
testcase_26 AC 35 ms
14,408 KB
testcase_27 AC 52 ms
19,612 KB
testcase_28 AC 37 ms
15,100 KB
testcase_29 AC 47 ms
17,896 KB
testcase_30 AC 37 ms
14,732 KB
testcase_31 AC 26 ms
11,044 KB
testcase_32 AC 25 ms
10,980 KB
testcase_33 AC 51 ms
19,220 KB
testcase_34 AC 22 ms
9,888 KB
testcase_35 AC 42 ms
16,488 KB
testcase_36 AC 50 ms
19,588 KB
testcase_37 AC 51 ms
19,628 KB
testcase_38 AC 52 ms
19,536 KB
testcase_39 AC 51 ms
19,636 KB
testcase_40 AC 51 ms
19,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    a = list(map(int, input().split()))
    
    max_a, t = 0, 0
    for i in range(n):
        if a[i] < max_a and t < a[i]:
            t = a[i]
        if max_a < a[i]:
            max_a = a[i]
            
    print(t)
    
    
if __name__ == '__main__':
    main()
0