Activity for General Sebast1anâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #283971 | Initial revision | — | about 3 years ago |
Answer | — |
A: "Hello, {name}!" [Java (JDK)], 134 123 118 bytes interface M{static void main(String[]a){System.out.print("Hello, "+new java.util.Scanner(System.in).nextLine()+"!");}} Try it online! Golfed 5 bytes thanks to @user's advice. (more) |
— | about 3 years ago |
Edit | Post #283969 | Initial revision | — | about 3 years ago |
Answer | — |
A: "Hello, {name}!" [Lua], 35 32 bytes print("Hello, "..io.read().."!") Try it online! Golfed 3 bytes thanks to @Moshi's advice. (more) |
— | about 3 years ago |
Edit | Post #283968 | Initial revision | — | about 3 years ago |
Answer | — |
A: "Hello, {name}!" [Python 3], 27 bytes print(f"Hello, {input()}!") Try it online! (more) |
— | about 3 years ago |
Edit | Post #283966 | Initial revision | — | about 3 years ago |
Question | — |
"Hello, {name}!" Background While we do have a "Hello, World!" challenge, we still don't have one regarding input. So let's do one! Challenge Create a program that takes an input (not as a function argument) then outputs `Hello, `, the variable and `!` altogether. Standard I/O only applies. Shortest submissi... (more) |
— | about 3 years ago |
Suggested Edit | Post #283176 |
Suggested edit: (more) |
helpful | about 3 years ago |
Edit | Post #283838 |
Post edited: |
— | about 3 years ago |
Edit | Post #283948 |
Post edited: |
— | about 3 years ago |
Edit | Post #283948 | Initial revision | — | about 3 years ago |
Article | — |
Define a mathematical expression in English [released] Background Inspired by this challenge that is also a mathematical English translator. Challenge Write a program that translates a mathematical expression using English with the following specifications: - The expression can only take in numbers, letters from the English alphabet, the equa... (more) |
— | about 3 years ago |
Edit | Post #282785 |
Post edited: Typo. lmao |
— | about 3 years ago |
Edit | Post #283946 | Initial revision | — | about 3 years ago |
Question | — |
Can we have [popularity-contest]s? Just curious, but this might help other users, so I'm placing at Meta. A popularity-contest is a non-object winning criteria challenge that is based on having the highest scored answer of the challenge. Basically, you can do the specific tasks in any way, and make the program a little something to... (more) |
— | about 3 years ago |
Suggested Edit | Post #282785 |
Suggested edit: Typo. lmao (more) |
helpful | about 3 years ago |
Edit | Post #283917 |
Post edited: |
— | about 3 years ago |
Edit | Post #283917 | Initial revision | — | about 3 years ago |
Question | — |
Separate the tags away from the Sandbox or delete the [finalized] tag > This is a feature-request post consisting of 2 actions for a reason... There's this thing that's been bugging me for a while in Code Golf CD. If you go to the tag page of the Challenges category, you'll be greeted with, of course, tags. But there's one tag that I didn't want to see a part of in ... (more) |
— | about 3 years ago |
Edit | Post #283838 |
Post edited: |
— | about 3 years ago |
Edit | Post #283649 |
Post edited: |
— | about 3 years ago |
Edit | Post #283858 |
Post edited: |
— | about 3 years ago |
Comment | Post #283858 |
@#53588 Yeah, that's fine, but it shouldn't be either an underscore nor slash. (more) |
— | about 3 years ago |
Comment | Post #283865 |
I completely agree with @#53579 here. The word `and` might not even be used at all to save bytes in most answers. (more) |
— | about 3 years ago |
Edit | Post #283858 | Initial revision | — | about 3 years ago |
Article | — |
Stairs? Stairs! Stairs. [released] Challenge - Make a program that takes input of an integer that's $n > 1$ and print out a staircase using a specific character for stair basing (hashes (`#`) for demonstration; you can use spaces, but not tabs or other whitespace characters), slashes (`/`), and underscores (``). - The basis of the... (more) |
— | about 3 years ago |
Comment | Post #283838 |
@#53503 After some consideration, go on. Use such answers. In the sandbox, Shaggy decided it's best to clear off the banning of the converter stuff, so I went along with it. In other words, such answers are now allowed. (more) |
— | about 3 years ago |
Edit | Post #283649 |
Post edited: |
— | about 3 years ago |
Edit | Post #283838 | Initial revision | — | about 3 years ago |
Question | — |
Make my value binary Challenge What do computers understand? That's right, binary. All files are turned into binary digits when you run them, but what if I suggest giving you an `int` then turn it into it's binary value. - Take input of a non-negative decimal integer and output its binary value/form. - Any precedi... (more) |
— | about 3 years ago |
Edit | Post #283799 |
Post edited: |
— | about 3 years ago |
Edit | Post #283799 |
Post edited: |
— | about 3 years ago |
Comment | Post #283799 |
@#53196 Spaces. (more) |
— | about 3 years ago |
Comment | Post #283799 |
@#53196 Good question. (more) |
— | about 3 years ago |
Edit | Post #283799 |
Post edited: |
— | about 3 years ago |
Edit | Post #283799 | Initial revision | — | about 3 years ago |
Article | — |
Abbreviate everything [released] Challenge Make a program that takes input of a string and abbreviate it. - All letters of an abbreviation are capitalized, so keep that in mind. - Whitespace, numbers and non-English characters are ignored. - If the inputted string is a paragraph (2+ sentences), the abbreviation will be split... (more) |
— | about 3 years ago |
Edit | Post #283751 |
Post edited: |
— | about 3 years ago |
Edit | Post #283620 |
Post edited: |
— | about 3 years ago |
Edit | Post #283754 |
Post edited: Be happy I made a TIO for this. |
— | about 3 years ago |
Edit | Post #283777 | Initial revision | — | about 3 years ago |
Question | — |
Tips in golfing using Lua Lua's not really used much in golfing, so it'd be pretty cool to learn some golfing tricks when making answers using it. What golfing tips are there for Lua? (more) |
— | about 3 years ago |
Comment | Post #283775 |
@#53506 Sadge. lmao (more) |
— | about 3 years ago |
Edit | Post #283770 | Initial revision | — | about 3 years ago |
Question | — |
Make $2 + 2 = 5$ In this challenge, add 2 integers, but if both the integers are `2`, output `5`. Shortest code in each language wins! Example ungolfed program in [Python 3.x] def add(x, y): 	if x == 2 and y == 2: 		return 5 	else: 		return x + y Try it online! (more) |
— | about 3 years ago |
Suggested Edit | Post #283754 |
Suggested edit: Be happy I made a TIO for this. (more) |
helpful | about 3 years ago |
Comment | Post #283751 |
@#53588 They're optional, as long as it can get you to golf some bytes. (more) |
— | about 3 years ago |
Edit | Post #283620 |
Post edited: |
— | about 3 years ago |
Comment | Post #283754 |
I think it'd be helpful if you added a TIO link to the runnable source code. (more) |
— | about 3 years ago |