結果
問題 |
No.865 24時間降水量
|
ユーザー |
![]() |
提出日時 | 2024-04-14 12:53:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 153 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,452 KB |
最終ジャッジ日時 | 2024-10-03 10:47:31 |
合計ジャッジ時間 | 6,527 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | AC * 15 TLE * 1 -- * 2 |
ソースコード
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)