DoctorSolver

Modular arithmetic

Compute the canonical remainder for a positive modulus.

Open in Flow
Input
0 characters
Output
0 characters

How it works

The remainder modulo m ranges from 0 to m − 1, including for negative input.

Usage example

-17

Maximum input 4,096 bytes · Timeout 5 s

Related tools