結果
| 問題 | 
                            No.631 Noelちゃんと電車旅行
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-01-05 23:01:28 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 323 bytes | 
| コンパイル時間 | 252 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 35,372 KB | 
| 最終ジャッジ日時 | 2024-12-23 07:14:12 | 
| 合計ジャッジ時間 | 52,638 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 5 TLE * 16 | 
ソースコード
N = int(input())
T = list(map(int, input().split()))
M = int(input())
for i in range(M):
    l, r, d = map(int, input().split())
    t = 0
    for j in range(N - 1):
        if l - 1 <= j < r:
            T[j] += d
        if t >= T[j]:
            t += 3
        else:
            t = T[j]
            t += 3
    print(t)