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 Question

Question Unprotected by caird coinheringaahing
Question Protected by Community Bot
Question Unprotected by caird coinheringaahing
Question Protected by Community Bot
Became Hot Network Question
Tweeted twitter.com/StackCodeGolf/status/1332655514174562305
added 4124 characters in body
Source Link
Sisyphus
  • 15.1k
  • 3
  • 48
  • 89
  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1. Or, use the online testing environment linked at the bottom of this post.

  2. Select any language that sloc supports. A full list is available here.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

There are a number of ideas that can work across multiple languages.

Online test environment

Try it online!

You need to:

  1. Type your code into the input box
  2. Type the extension corresponding to your language into the command args (important!)
  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1.

  2. Select any language that sloc supports. A full list is available here.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

There are a number of ideas that can work across multiple languages.

  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1. Or, use the online testing environment linked at the bottom of this post.

  2. Select any language that sloc supports. A full list is available here.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

There are a number of ideas that can work across multiple languages.

Online test environment

Try it online!

You need to:

  1. Type your code into the input box
  2. Type the extension corresponding to your language into the command args (important!)
deleted 104 characters in body
Source Link
Sisyphus
  • 15.1k
  • 3
  • 48
  • 89
  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1.

  2. Select any language that sloc supports. A full list is available here. Languages that do not satisfy PPCG's definition of a programming language are still allowed to compete.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1.

  2. Select any language that sloc supports. A full list is available here. Languages that do not satisfy PPCG's definition of a programming language are still allowed to compete.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

  1. Download sloc. If you have npm, this can be done via npm i sloc. We will use the latest version as of the time of posting, which is 0.2.1.

  2. Select any language that sloc supports. A full list is available here.

  3. Write a full program in that language that prints the exact string Hello, World! to stdout. The output may optionally have a trailing newline, but no other format is accepted. The program may output anything to stderr. However, to be considered a valid submission, sloc must see the program as zero lines of source code. You can verify this by running sloc myprogram.ext, which should read Source : 0.

Source Link
Sisyphus
  • 15.1k
  • 3
  • 48
  • 89
Loading

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