搜尋此網誌

2011年7月28日 星期四

ACM-light, more light problem

According to the "Mathematical Induction", we found out that when the serial are 1,4,9,16 ...the final bulb is on ,which means that number has a square root . On the other hand, besides those numbers, the bulb is off. Therefore , following is my Java solution:

沒有留言:

張貼留言