ALGOSPOT - 0-1수열

http://algospot.com/judge/problem/read/ZEROONE

completed. O(N) algorithm
however timeout at algospot. WTF