結果
問題 |
No.45 回転寿司
|
ユーザー |
![]() |
提出日時 | 2019-01-20 14:26:19 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 346 bytes |
コンパイル時間 | 387 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-09-13 11:46:06 |
合計ジャッジ時間 | 2,750 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | WA * 30 |
ソースコード
n = int(input()) sq = list(map(int,input().split())) m1 = 0 m2 = 0 m3 = sq[0] cnt = 1 while cnt < n: print('m1 ' + str(m1)) print('m2 ' + str(m2)) print('m3 ' + str(m3)) print('sq[cnt]' + str(sq[cnt])) m4 = max([sq[cnt]+m2, sq[cnt]+m1]) print('m4 ' + str(m4)) m1,m2,m3 = m2,m3,m4 cnt += 1 print(max([m1,m2,m3]))