結果
| 問題 | 
                            No.633 バスの運賃
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2021-12-06 19:03:10 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                RE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 191 bytes | 
| コンパイル時間 | 70 ms | 
| コンパイル使用メモリ | 12,544 KB | 
| 実行使用メモリ | 10,752 KB | 
| 最終ジャッジ日時 | 2024-07-07 09:30:12 | 
| 合計ジャッジ時間 | 711 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 9 | 
ソースコード
n = int(input())
a = list(map(int,input().split()))
now = 0
count = 0
for _ in range(n-1):
    b,c = list(map(int,input().split()))
    now = now + c - b
    count += a[i] * now
print(count)