結果

問題 No.865 24時間降水量
ユーザー wata_pythonwata_python
提出日時 2019-08-16 21:51:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 251 bytes
コンパイル時間 859 ms
コンパイル使用メモリ 11,896 KB
実行使用メモリ 15,292 KB
最終ジャッジ日時 2023-10-23 22:37:15
合計ジャッジ時間 8,597 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,072 KB
testcase_01 AC 26 ms
10,072 KB
testcase_02 AC 26 ms
10,072 KB
testcase_03 AC 27 ms
10,072 KB
testcase_04 AC 26 ms
10,072 KB
testcase_05 AC 749 ms
10,148 KB
testcase_06 AC 743 ms
10,148 KB
testcase_07 AC 753 ms
10,148 KB
testcase_08 AC 772 ms
10,148 KB
testcase_09 AC 747 ms
10,148 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます

ソースコード

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