結果
| 問題 | No.633 バスの運賃 | 
| コンテスト | |
| ユーザー |  bellangeldindon | 
| 提出日時 | 2019-05-14 16:16:25 | 
| 言語 | Python2 (2.7.18) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 9 ms / 2,000 ms | 
| コード長 | 246 bytes | 
| コンパイル時間 | 40 ms | 
| コンパイル使用メモリ | 7,040 KB | 
| 実行使用メモリ | 6,400 KB | 
| 最終ジャッジ日時 | 2024-07-18 15:31:38 | 
| 合計ジャッジ時間 | 771 ms | 
| ジャッジサーバーID (参考情報) | judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 9 | 
ソースコード
n = int(raw_input()) fee = [] for i in range(0, n-1): fee.append(int(raw_input())) b, c = map(int, raw_input().split()) now = c sum = 0 for i in range(0, n-1): sum += fee[i]*now b, c = map(int, raw_input().split()) now = now - b + c print sum
