結果
問題 |
No.631 Noelちゃんと電車旅行
|
ユーザー |
![]() |
提出日時 | 2020-07-11 19:01:54 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 558 bytes |
コンパイル時間 | 145 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 57,280 KB |
最終ジャッジ日時 | 2024-10-13 09:15:13 |
合計ジャッジ時間 | 10,911 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 TLE * 1 -- * 19 |
ソースコード
import numpy as np import sys sys.setrecursionlimit(10 ** 6) int1 = lambda x: int(x) - 1 p2D = lambda x: print(*x, sep="\n") def II(): return int(sys.stdin.readline()) def MI(): return map(int, sys.stdin.readline().split()) def LI(): return list(map(int, sys.stdin.readline().split())) def LLI(rows_number): return [LI() for _ in range(rows_number)] def SI(): return sys.stdin.readline()[:-1] n=II() tt=LI() tt=np.array(tt,dtype="i8") tt-=np.arange(n-1,dtype="i8")*3 mn=3*(n-1) for _ in range(II()): l,r,d=MI() tt[l-1:r]+=d print(mn+np.max(tt))