2014年3月4日 - for (int i = 0, j = 0; i < N; j += i % 2, ++i) {}. This increments j at the end of every iteration ...
stackoverflow.com