結果
問題 | No.865 24時間降水量 |
ユーザー | vwxyz |
提出日時 | 2024-04-14 12:53:32 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,537 ms / 2,000 ms |
コード長 | 294 bytes |
コンパイル時間 | 229 ms |
コンパイル使用メモリ | 82,568 KB |
実行使用メモリ | 109,224 KB |
最終ジャッジ日時 | 2024-04-14 12:53:40 |
合計ジャッジ時間 | 7,427 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 43 ms
58,312 KB |
testcase_01 | AC | 43 ms
58,248 KB |
testcase_02 | AC | 42 ms
59,736 KB |
testcase_03 | AC | 42 ms
58,980 KB |
testcase_04 | AC | 43 ms
59,004 KB |
testcase_05 | AC | 81 ms
76,632 KB |
testcase_06 | AC | 77 ms
76,192 KB |
testcase_07 | AC | 78 ms
76,356 KB |
testcase_08 | AC | 81 ms
76,452 KB |
testcase_09 | AC | 78 ms
76,496 KB |
testcase_10 | AC | 147 ms
76,404 KB |
testcase_11 | AC | 174 ms
76,804 KB |
testcase_12 | AC | 139 ms
76,084 KB |
testcase_13 | AC | 140 ms
76,628 KB |
testcase_14 | AC | 141 ms
76,080 KB |
testcase_15 | AC | 1,537 ms
109,224 KB |
testcase_16 | AC | 1,440 ms
108,952 KB |
testcase_17 | AC | 1,454 ms
109,200 KB |
testcase_18 | AC | 41 ms
58,644 KB |
testcase_19 | AC | 45 ms
60,220 KB |
testcase_20 | AC | 42 ms
59,684 KB |
ソースコード
N=int(input()) inf=1<<60 A=[-inf]*30+list(map(int,input().split()))+[-inf]*30 Q=int(input()) ans=max(sum(A[i:i+24]) for i in range(N+60-23)) for q in range(Q): T,V=map(int,input().split()) T+=29 A[T]=V for i in range(T-23,T+1): ans=max(ans,sum(A[i:i+24])) print(ans)