Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#C, (削除) 167 (削除ここまで)(削除) 161 (削除ここまで) 159 bytes

C, (削除) 167 (削除ここまで)(削除) 161 (削除ここまで) 159 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

#C, (削除) 167 (削除ここまで)(削除) 161 (削除ここまで) 159 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

C, (削除) 167 (削除ここまで)(削除) 161 (削除ここまで) 159 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

added 9 characters in body
Source Link
betseg
  • 8.8k
  • 3
  • 30
  • 61

#C, (削除) 167 (削除ここまで) 161(削除) 161 (削除ここまで) 159 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=0;i++<a-2;i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases Try it on Ideone, with some test cases

#C, (削除) 167 (削除ここまで) 161 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=0;i++<a-2;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

#C, (削除) 167 (削除ここまで) (削除) 161 (削除ここまで) 159 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=2;i++<a;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

added 5 characters in body
Source Link
betseg
  • 8.8k
  • 3
  • 30
  • 61

#C, 167(削除) 167 (削除ここまで) 161 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=0;i++<a-2;)p(e);p(c);puts;p(""10);}h(b,d){for(i=0;i++<b;){p(d);puts;p(""10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases Try it on Ideone, with some test cases

#C, 167 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=0;i++<a-2;)p(e);p(c);puts("");}h(b,d){for(i=0;i++<b;){p(d);puts("");}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

#C, (削除) 167 (削除ここまで) 161 bytes

Yeah.

#define p putchar
i,j;g(a,c,e){p(c);for(i=0;i++<a-2;)p(e);p(c);p(10);}h(b,d){for(i=0;i++<b;){p(d);p(10);}}f(a,b,c,d,e){g(a,c,e);h(b,d);g(a,c,e);h(b,d);g(a,c,e);}

Try it on Ideone, with some test cases

oops forgot that
Source Link
betseg
  • 8.8k
  • 3
  • 30
  • 61
Loading
deleted 23 characters in body
Source Link
betseg
  • 8.8k
  • 3
  • 30
  • 61
Loading
Source Link
betseg
  • 8.8k
  • 3
  • 30
  • 61
Loading

AltStyle によって変換されたページ (->オリジナル) /