結果
| 問題 | No.633 バスの運賃 |
| コンテスト | |
| ユーザー |
zaki_chemtech
|
| 提出日時 | 2020-07-30 22:37:04 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 62 ms / 2,000 ms |
| + 539µs | |
| コード長 | 305 bytes |
| 記録 | |
| コンパイル時間 | 230 ms |
| コンパイル使用メモリ | 95,720 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-08-06 23:46:33 |
| 合計ジャッジ時間 | 1,942 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 |
ソースコード
n=int(input())
ab = []
for _ in range(n-1):
a = int(input())
ab.append(a)
men_in_bus = 0
ans = 0
for i in range(n):
b,c = map(int,input().split())
if i == 0:
men_in_bus += c
elif i == n-1:
break
else:
men_in_bus += c-b
ans += men_in_bus*ab[i]
print(ans)
zaki_chemtech