結果

問題 No.45 回転寿司
ユーザー direngr34341431
提出日時 2019-11-20 09:32:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 125 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-10-05 17:10:59
合計ジャッジ時間 2,110 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 4
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

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

print(N, V)


list = [0, 0]
for i in V:
    list.sort()
    if i > list[0] or i > list[1]:
        list[0] = i
    else:
        continue

print(sum(list))
0