Activity for sampersandâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #285904 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Can you give me half? Ruby, 10 distinct, 35 chars ```rb t=/%/=%/=%/ o=/%/=%/==%/ t/o.tof ``` (more) |
— | almost 3 years ago |
Edit | Post #285692 | Initial revision | — | almost 3 years ago |
Answer | — |
A: Make $2 + 2 = 5$ Ruby, 19 bytes ``` ->a,b{a|b==2?5:a+b} ``` Try it online! (more) |
— | almost 3 years ago |
Edit | Post #285618 |
Post edited: |
— | almost 3 years ago |
Suggested Edit | Post #285618 |
Suggested edit: (more) |
helpful | almost 3 years ago |
Comment | Post #285618 |
You can shave off a byte by moving the `,0` into the first array and removing the `*`: `a,=[b<106?a+b/3-34:b<112?p(a):a*a,0]-[-1,256]` (more) |
— | almost 3 years ago |