Activity for General Sebast1anâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Question | — |
A chunk of symbols is a calculation Challenge Create a program that takes input of a string and outputs an integer using the following calculation system: - The string can only contain `+`, `-`, ``, `/`, `^`, `!` (or a different character; `!` is used here for demonstration), `(`, and `)`. - In this system, a character shows the... (more) |
— | over 3 years ago |
Edit | Post #283231 |
Post edited: |
— | over 3 years ago |
Comment | Post #283231 |
@#53196 Yep. It also makes some cool calculations since GEMDAS is applied to it, meaning having a second character to present `+n` is a good idea to start with. (more) |
— | over 3 years ago |
Edit | Post #283288 |
Post edited: |
— | over 3 years ago |
Comment | Post #283175 |
@#53837 Nevermind, I figured it out. It's in my answer already. (more) |
— | over 3 years ago |
Edit | Post #282290 |
Post edited: |
— | over 3 years ago |
Edit | Post #279253 |
Post edited: |
— | over 3 years ago |
Edit | Post #283288 |
Post edited: |
— | over 3 years ago |
Edit | Post #283294 | Initial revision | — | over 3 years ago |
Answer | — |
A: Add detailed wikis and usage info on these tags graphical-output - Usage info: Graphical output challenges involve outputting images or illustrations using graphics. - Detailed wiki: (uses text from CGCC's) > Graphical output challenges involve images as output or drawing graphics on a screen. For pure ASCII art contests, use ascii-art instea... (more) |
— | over 3 years ago |
Suggested Edit | Post #279253 |
Suggested edit: (more) |
helpful | over 3 years ago |
Edit | Post #282290 |
Post edited: |
— | over 3 years ago |
Edit | Post #283288 |
Post edited: |
— | over 3 years ago |
Edit | Post #283288 |
Post edited: |
— | over 3 years ago |
Edit | Post #283288 | Initial revision | — | over 3 years ago |
Answer | — |
A: Reduce over the range [1..n] [C (clang)], 59 bytes c;f(int a,(b)(int,int)){for(c=a;a>1;)c=b(--a,c);return c;} Try it online! This program written by @Hakerh400 in the comments is basically how the other answers before this post existed actually did it, by a reduction sort of method. I'd like to thank them for ma... (more) |
— | over 3 years ago |
Edit | Post #283285 | Initial revision | — | over 3 years ago |
Article | — |
Code bowling "Code bowling" In this code-bowling challenge, make an absurdly long program that prints out "Code bowling". - Obfuscate it as much as you could. - Comments and custom functions aren't allowed to make the program longer. - If any character in the code is missing, it won't run or it sends an error. - The progr... (more) |
— | over 3 years ago |
Comment | Post #283175 |
I have no idea how you got those XOR values. It's kinda confusing what values are going in. (more) |
— | over 3 years ago |
Comment | Post #283231 |
@#53196 Yes, you can use whatever character to replace `!`, but that also means you can't use `!` anymore if you used a different character.
Meaning `aaaa+++` is a valid input, which returns `7`, whilst `aaaa!!!+++` isn't. It'd be written `aaaa+++aaa` or `++++aaa+++` instead, which returns `10`. (more) |
— | over 3 years ago |
Edit | Post #283264 | Initial revision | — | over 3 years ago |
Question | — |
Add detailed wikis and usage info on these tags In this request (not really a feature-request but still tagged so anyway), I'd like to have detailed wikis on tags and maybe usage information on them too. Currently, these tags have usage info in them: - code-bowling - code-golf - cops-and-robbers - fastest-code - king-of-the-hill I'd lik... (more) |
— | over 3 years ago |
Edit | Post #283231 |
Post edited: |
— | over 3 years ago |
Edit | Post #283231 |
Post edited: |
— | over 3 years ago |
Comment | Post #283231 |
@#53196 Yes. It can be used for addition too, now that I have edited it. (more) |
— | over 3 years ago |
Edit | Post #283231 |
Post edited: |
— | over 3 years ago |
Comment | Post #283231 |
@#53196 I remember Kevin M. Mansour doing the same thing for "Caesar shift cipher", where they used a function to solve the challenge, so sure, that works too. (more) |
— | over 3 years ago |
Comment | Post #283231 |
@#53588 Since we're focusing on integers, it's most likely integer division we'll be using. (more) |
— | over 3 years ago |
Comment | Post #283231 |
@#53837 No, actually. It's basically the implementation of the operation from the preceding number. For example, `//` is basically `x / 2`. And I mentioned you CAN'T use symbols other than `+`, `-`, `!` and `(` at the very beginning of the input because it will return something to show it's invalid. (more) |
— | over 3 years ago |
Edit | Post #283231 |
Post edited: |
— | over 3 years ago |
Edit | Post #283231 | Initial revision | — | over 3 years ago |
Article | — |
A chunk of symbols is a calculation [released] Challenge Create a program that takes input of a string and outputs an integer using the following calculation system: - The string can only contain `+`, `-`, ``, `/`, `^`, `!` (or a different character; `!` is used here for demonstration), `(`, and `)`. - In this system, a character shows the... (more) |
— | over 3 years ago |
Edit | Post #283211 | Initial revision | — | over 3 years ago |
Answer | — |
A: Tips for golfing in C Abuse (as few) libraries (as possible) We don't want to use too much libraries when playing challenges. Sometimes, libraries aren't used at all in some answers in C. What if we want to shorten some code? Functions do the trick, specifically built-ins. It's specified you don't have to apply the ... (more) |
— | over 3 years ago |
Comment | Post #283175 |
@#53837 Simple, use `<a class="badge is-tag">something</a>`. This will give <a class="badge is-tag">something</a>. (more) |
— | over 3 years ago |
Edit | Post #283180 |
Post edited: |
— | over 3 years ago |
Suggested Edit | Post #283180 |
Suggested edit: (more) |
helpful | over 3 years ago |
Edit | Post #283151 |
Post edited: |
— | over 3 years ago |
Comment | Post #283175 |
I don't know what the <a class="badge is-tag">blackbox-function</a> is supposed to be, but yeah, this may seem like a cool repetitive calculation challenge. (more) |
— | over 3 years ago |
Suggested Edit | Post #283176 |
Suggested edit: (more) |
declined | over 3 years ago |
Comment | Post #283176 |
However, I'm thinking not just having <a class="badge is-tag">code-golf</a> + <a class="badge is-tag">tips</a>, but also burninate the <a class="badge is-tag">code-golf-tips</a> tag as well, to give more room to store tags. In other words, for some reason, the tag list has a max scroll so you won't b... (more) |
— | over 3 years ago |
Edit | Post #283163 | Initial revision | — | over 3 years ago |
Answer | — |
A: "Hello, World!" [Java (JDK)], 80 bytes class A{public static void main(String[] A){System.out.print("Hello, World!");}} Try it online! This answer, except it's actually runnable. (more) |
— | over 3 years ago |
Comment | Post #283141 |
@#53588 As long as you separate each verse, then trailing newlines can be viable. (more) |
— | over 3 years ago |
Edit | Post #283141 |
Post edited: |
— | over 3 years ago |
Edit | Post #283151 | Initial revision | — | over 3 years ago |
Article | — |
Cops and Robbers: Luhn algorithm [cancelled] This is now a cancelled sandbox post. This challenge won't be posted on the main for reasons, but thanks for coming to check this out. Introduction The Luhn algorithm is used to verify card numbers. The algorithm in a summary acts like this: ```lang-none Reverse the digits, make an array: ... (more) |
— | over 3 years ago |
Edit | Post #283141 |
Post edited: |
— | over 3 years ago |
Comment | Post #283141 |
@#53196 I'm certain you can use snippets. I can't really make up what you're trying to make though, so do what suits ya. (more) |
— | over 3 years ago |
Edit | Post #283141 |
Post edited: |
— | over 3 years ago |