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 Revisions

11 of 11
deleted 11 characters in body
jdt
  • 5.1k
  • 1
  • 16
  • 21

C (gcc), 137 bytes

#define r rand()
m;b;q(){m=r;m&30||q();}f(){for(q(b=5+r%4*5);--b;)printf(b%5?m&1<<b%5?"%c%c":"--":":"+!q(),"WRSC"[r%4],"rugbywcp"[r%8]);}

Try it online!

-5 bytes thanks ceilingcat!

jdt
  • 5.1k
  • 1
  • 16
  • 21

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