<< 6/89 >>
First Last

ライフゲーム - 実装

 for (int i = -1; i <= 1; i++) {
   for (int j = -1; j <= 1; j++) {
     if (i == 0 && j == 0) continue;
     sum += ...
   }
 }