fork download
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int s, l;
  5. char c[] = "ox";
  6. scanf("%d %d", &s, &l);
  7. for (int i = (l == 1) ? l : s * l; i--;)
  8. {
  9. for (int j = s * l; j--;)
  10. {
  11. int w = ((i / s) % 2 + (j / s) % 2) % 2;
  12. putchar(c[w]);
  13. }
  14. putchar('\n');
  15. }
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 2252KB
stdin
2 1
stdout
oo