結果
問題 | No.865 24時間降水量 |
ユーザー | vwxyz |
提出日時 | 2024-04-14 12:53:14 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 294 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 30,456 KB |
最終ジャッジ日時 | 2024-04-14 12:53:22 |
合計ジャッジ時間 | 6,573 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 30 ms
17,696 KB |
testcase_01 | AC | 30 ms
10,880 KB |
testcase_02 | AC | 30 ms
10,752 KB |
testcase_03 | AC | 30 ms
10,880 KB |
testcase_04 | AC | 30 ms
10,880 KB |
testcase_05 | AC | 69 ms
10,752 KB |
testcase_06 | AC | 65 ms
10,752 KB |
testcase_07 | AC | 68 ms
10,752 KB |
testcase_08 | AC | 63 ms
10,880 KB |
testcase_09 | AC | 64 ms
10,752 KB |
testcase_10 | AC | 363 ms
10,880 KB |
testcase_11 | AC | 365 ms
10,752 KB |
testcase_12 | AC | 363 ms
10,752 KB |
testcase_13 | AC | 367 ms
10,752 KB |
testcase_14 | AC | 364 ms
10,752 KB |
testcase_15 | TLE | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
ソースコード
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)