結果
| 問題 | No.633 バスの運賃 | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2018-11-30 19:53:20 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 267 bytes | 
| コンパイル時間 | 289 ms | 
| コンパイル使用メモリ | 82,556 KB | 
| 実行使用メモリ | 67,072 KB | 
| 最終ジャッジ日時 | 2024-06-26 23:43:21 | 
| 合計ジャッジ時間 | 1,344 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | RE * 9 | 
ソースコード
n = int(input())
a = [0]
b = [0]
c = [0]
num = 0
ans = 0 
for i in range(1,n):
    a.append(int(input()))
for i in range(1, n+1):
    b.append(int(input()))
    c.append(int(input()))
for i in range(1,n):
    num = num-b[i]+c[i]
    ans += a[i] * num
print(ans)
            
            
            
        