結果
問題 | No.633 バスの運賃 |
ユーザー |
![]() |
提出日時 | 2018-02-04 22:58:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 29 ms / 2,000 ms |
コード長 | 292 bytes |
コンパイル時間 | 107 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-06-30 04:05:30 |
合計ジャッジ時間 | 810 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 |
ソースコード
n=int(input()) yen=[] cnt=0 fee=0 h=[[] for i in range(2)] for i in range(n-1): yen.append(int(input())) for i in range(n): a=list(map(int,(input().split()))) h[0].append(a[0]) h[1].append(a[1]) for i in range(n-1): cnt+=(-h[0][i]+h[1][i]) fee+=(cnt*yen[i]) print(fee)