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