wak4-0.c 133 Bytes
for (int c0 = max(max(max(max(a1, a2), a3), a4), a5); c0 <= min(min(min(min(b1, b2), b3), b4), b5); c0 += 1) {
  s0(c0);
  s1(c0);
}