Help needed in CSES Problemset : Problem Exponentiation II

Правка en1, от sahal, 2020-10-01 17:42:20

Problem

Solution

I don't understand line 24. Why M-1 is used instead of M? Please help me to understand. Thanks in advance.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский sahal 2020-10-01 17:42:20 313 Initial revision (published)