結果
問題 |
No.45 回転寿司
|
ユーザー |
![]() |
提出日時 | 2017-07-08 11:50:25 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 413 bytes |
コンパイル時間 | 132 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-06 19:39:17 |
合計ジャッジ時間 | 2,293 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 RE * 1 |
other | AC * 1 WA * 12 RE * 17 |
ソースコード
# your code goes here #ef su(ln,mi,la): # if ln==1: # return V[ln-1] N=int(input ()) V=[int(i) for i in input(). split ()] if V[0]>V[1]: ma=V[0] la=0 else: ma=V[1] la=1 mal=V[0] for i in range(2,N-1): #print(ma) if la==0: ma+=V[i] la=1 else: c=mal+V[i] if ma>=c: la=0 else: mal=ma ma=c print(ma)