fork download
  1. main() {
  2. int s, l, i, j;
  3. scanf("%d %d", &s, &l);
  4. for(i=0; i<(l!=1 ? l*s : 1); ++i) {
  5. for(j=0; j<l*s; ++j)putchar('o'+(j+i/s*s)/s%2*9);
  6. puts("");
  7. }
  8. }
Runtime error #stdin #stdout 0s 2296KB
stdin
3 2
stdout
oooxxx
oooxxx
oooxxx
xxxooo
xxxooo
xxxooo