Thursday, October 2, 2014

ACM 1877. Bicycle Codes / Велосипедные коды

For making things easier and more understandable we can just implement the process and check if there will be a day where we will open the lock. On the odd days the first lock is applied and on the even days the second one, it is just easy too loop over all the codes starting from 0 and check for the corresponding lock, if we can open a lock at some point then the answer "YES".


       FULL SOURCE CODE

No comments:

Post a Comment