This document contains mathematical equations and calculations involving variables and coefficients. Steps are shown to solve for unknown variables through algebraic manipulation and substitution of values into equations. The final lines indicate the solution was checked against the original problem.
- The document contains code and explanations for solving optimization problems using dynamic programming, including calculating minimum costs using a 2D array to store results.
- It describes applying dynamic programming to problems involving finding minimum costs for tasks that can be split into subtasks, with the overall cost determined by combining subtask costs.
- The code provided shows initializing a 2D array and using nested for loops to iterate through values, calculate minimum costs based on previous results, and store them in the 2D array to build up an optimal solution.
60. D-MODでの演算
● 以下 法を1,000,000,007として、A ≡ a, B ≡ b,
C ≡ cとする
● 割り算
– B ≡ 0でなくA ÷ B = Cならば
a × (bの逆元) ≡ c
● 逆元とは
– Xの逆元とは X × Y ≡ 1となるYのこと
– X≠0 で 法(ここでは1,000,000,007)が素数ならば
逆元が唯一つ存在する
– →常に割り算が出来る