結果
| 問題 | No.633 バスの運賃 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-11-30 19:53:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 267 bytes |
| 記録 | |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 85,592 KB |
| 実行使用メモリ | 67,616 KB |
| 最終ジャッジ日時 | 2026-03-13 22:43:28 |
| 合計ジャッジ時間 | 1,209 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)