Can be solved without big mod/fast exponentiation.

Just iterate through the binary string and maintain respective mod values.

Statistics

86% Solution Ratio
FairoozREarliest, Jun '20
nusuBotFastest, 0.0s
FairoozRLightest, 131 kB
Abdullah_1234Shortest, 86B
Toph uses cookies. By continuing you agree to our Cookie Policy.