Sunday, September 28, 2014

ACM 1264. Workdays / Трудовые будни

 We check for every number N times. Just because the numeration starts from 0  (0...M) we have M+1 number to check for which gives the final answer of N*(M+1).


       FULL SOURCE CODE

No comments:

Post a Comment