Activity for xrs
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #291504 |
Post edited: |
— | about 20 hours ago |
Edit | Post #291568 |
Post edited: |
— | 3 months ago |
Edit | Post #291568 |
Post edited: |
— | 6 months ago |
Edit | Post #291568 |
Post edited: |
— | 6 months ago |
Edit | Post #291568 | Initial revision | — | 6 months ago |
Answer | — |
A: Looping counter [K (oK)], 9 bytes {x#0}'!10 Try it online! !10 / pass range your arbitrary number .' / treat those as a list, and evaluate each separately { } / main function x / number passed from the list # / will ... (more) |
— | 6 months ago |
Edit | Post #291567 | Initial revision | — | 6 months ago |
Answer | — |
A: "Hello, World!" [K (oK)], 15 bytes "Hello, World!" Try it online! I'm terrible at K, but I've got that one down now. (more) |
— | 6 months ago |
Edit | Post #291566 | Initial revision | — | 6 months ago |
Answer | — |
A: "Hello, World!" [AWK], 2 bytes $0 Try it online! END{print "Hello, World!"} (more) |
— | 6 months ago |
Edit | Post #291546 |
Post edited: |
— | 6 months ago |
Edit | Post #291546 |
Post edited: |
— | 6 months ago |
Edit | Post #291546 | Initial revision | — | 6 months ago |
Answer | — |
A: Digit Sum Integer Sequence (working title) [AWK], 82 bytes {split($1,d,"");i=a=d[1];for(x in d){d[x]>a?a=d[x]:0;d[x]<i?i=d[x]:0}print a+i+$1} Try it online! Just pass your input, e.g.: echo "123" | awk '...' (more) |
— | 6 months ago |
Edit | Post #291511 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 |
Post edited: |
— | 6 months ago |
Edit | Post #291504 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 |
Post edited: |
— | 6 months ago |
Edit | Post #291525 | Initial revision | — | 6 months ago |
Answer | — |
A: 1, 2, Fizz, 4, Buzz! [AWK], 62 61 60 56 bytes {for(;i++<$1;)print i%3?i%5?i:y="Buzz":i%5?x="Fizz":x y} {for(;i++<$0;)print i%15?i%5?i%3?i:"Fizz":"Buzz":"FizzBuzz"} {for(;i++<$0;x=""){i%3||x="Fizz";i%5||x=x"Buzz";print x?x:i}} {for(;i++<$0;){i%3?x="":x="Fizz";i%5?J:x=x"Buzz";print x?x:i}} Tr... (more) |
— | 6 months ago |
Edit | Post #291512 |
Post edited: |
— | 6 months ago |
Edit | Post #291512 |
Post edited: |
— | 6 months ago |
Edit | Post #291512 |
Post edited: |
— | 6 months ago |
Edit | Post #291512 | Initial revision | — | 6 months ago |
Answer | — |
A: Reverse an ASCII string [AWK], 48 bytes ORS="";{l=split($0,d,"");for(;l>0;)print d[l--]} Try it online! (more) |
— | 6 months ago |
Edit | Post #291511 | Initial revision | — | 6 months ago |
Answer | — |
A: Looping counter [AWK], 26 24 bytes END{for(;;)print x=x""} Try it online! (more) |
— | 6 months ago |
Edit | Post #291508 |
Post edited: |
— | 6 months ago |
Edit | Post #291508 | Initial revision | — | 6 months ago |
Answer | — |
A: Single digit Roman numeral [AWK], 80 bytes {split("I V X L C D M 1 5 10 50 100 500 1000",d);for(;d[++i]!=$1;);print d[i+7]} Try it online! A quick map function. 'split' breaks the string into array elements. Find the string, and we know the Arabic numbers are always seven spots -> down the array from its Latin... (more) |
— | 6 months ago |
Edit | Post #291504 | Initial revision | — | 6 months ago |
Answer | — |
A: Make $2 + 2 = 5$ [AWK], 28 26 21 bytes $0=$12&&$22?5:$1+$2 Try it online! (more) |
— | 6 months ago |