5 ms·
A + B mod n seems much easier than this.
by AnotherGoodName 10mo ago
A + B mod n seems much easier than this.
- BoiledCabbage 10mo agoYup
- tomsmeding 10mo agoThe method proposed is just A - B mod n. The two are entirely equivalent.
- AnotherGoodName 10mo agoA few extra steps to essentially manually do the mod part tbh. Would take their 20 line program to a 1 liner.