zer0-star / Nim-ACL

ACL (AtCoder Library) implementation in Nim
Creative Commons Zero v1.0 Universal
22 stars 3 forks source link

std/mathのceilDivが正じゃないと使えない問題 #49

Open chaemon opened 8 months ago

chaemon commented 8 months ago

1.6.14のstd/mathではceilDivが使えますが、ceilDiv(-3, -4)みたいに負の数を入れるとエラーになりますのでご注意ください。しかも前々からNim-ACLで同名で実装していたのでバッティングして面倒。。。

haruyama480 commented 8 months ago

floorDiv, ceilDiv, floorMod, ceilMod 4つ被っちゃってますね renameで対応するしかなさそうですね

chaemon commented 8 months ago

import math except ceilDivとやるとバッティングしないで済むのですが、面倒ですね。。。