結果

問題 No.865 24時間降水量
ユーザー wata_python
提出日時 2019-08-16 21:51:37
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 251 bytes
コンパイル時間 184 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,824 KB
最終ジャッジ日時 2024-09-22 15:54:56
合計ジャッジ時間 8,374 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 3
other AC * 10 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
l = list(map(int, input().split()))
q = int(input())
Vmax=0
for i in range(q):
    t, b =map(int, input().split())
    l[t-1]=b
    for j in range(n-23):
        V = sum(l[j:j+24])
        if V>Vmax:
            Vmax=V
    print(Vmax)
0