Skip to content

Conversation

@suisen-cp
Copy link
Collaborator

#12

  • ModInt#add(long mi)
  • ModInt#sub(long mi)
  • ModInt#mul(long mi)
  • ModInt#div(long mi)
  • ModInt#addAsg(long mi)
  • ModInt#subAsg(long mi)
  • ModInt#mulAsg(long mi)
  • ModInt#divAsg(long mi)

を追加.

また,複数個の ModInt をまとめて加算 / 乗算できるよう以下のメソッドを追加.

  • ModInt#add(ModInt mi1, ModInt mi2)
  • ...
  • ModInt#add(ModInt mi1, ModInt mi2, ModInt mi3, ModInt mi4)
  • ModInt#add(ModInt mi1, ModInt... mis)
  • (mul, addAsg, mulAsg もほぼ同様)

@suisen-cp suisen-cp merged commit b7efd40 into NASU41:master Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants