ABC248 Note
MatrixGroup · · 算法·理论
- A,B
Too easy to be necessary to say.
- C
Knapsack and suffix sum.
- D
Preprocess the occurrences of every number and use binary search for queries.
- E
If
Otherwise, enumrate two points. Ensure these points are the first two points on the line. If there are at least
Use integer to avoid precision error.
- F
Let
Time complexity: