MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / cmod

Function cmod

code/mathematics/intx.test.gen.py:23–24  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

21 return abs(x) / abs(y) * cmp(x, _sage_const_0 ) * cmp(y, _sage_const_0 )
22
23def cmod(x, y):
24 return abs(x) % abs(y) * (_sage_const_1 if x > _sage_const_0 else -_sage_const_1 )
25
26ts = [
27 ('add', _sage_const_100 , operator.add, ((-_sage_const_10 **_sage_const_9 ,_sage_const_10 **_sage_const_9 ), (-_sage_const_10 **_sage_const_9 ,_sage_const_10 **_sage_const_9 ))),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected