結果
| 問題 |
No.45 回転寿司
|
| ユーザー |
|
| 提出日時 | 2022-01-24 15:16:27 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 5,000 ms |
| コード長 | 247 bytes |
| コンパイル時間 | 1,121 ms |
| コンパイル使用メモリ | 82,340 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2024-12-14 11:24:50 |
| 合計ジャッジ時間 | 2,823 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
import sys
def input(): return sys.stdin.readline().rstrip()
def main():
input() # N
t, nt = 0, 0
for i in map(int, input().split()):
t, nt = nt+i, max(t, nt)
print(max(nt, t))
if __name__ == '__main__':
main()