Tuesday, August 19, 2014

COJ 1300. Modulo

We can keep a boolean array A where A[I] shows whether we already saw the number I or not. then we can just input and every time check whether the current number has been seen or not.


       FULL SOURCE CODE

No comments:

Post a Comment