Submit solution

Points: 10
Time limit: 1.0s
Memory limit: 64M

Problem type
Allowed languages
Ada, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JS, Kotlin, Lean, Lisp, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Turing, VB, Zig

Kirito was browsing Wikipedia when he came upon an interesting article:

A quine is a non-empty computer program which takes no input and produces a copy of its own source code as its only output. The standard terms for these programs in the computability theory and computer science literature are "self-replicating programs", "self-reproducing programs", and "self-copying programs".

His interest piqued, Kirito has tasked you with writing such a program.

Input Specification

There is no input.

Output Specification

The source code of your program.


  • -1
    justin_g_20  commented on June 5, 2021, 12:19 a.m.

    Are you not allowed to submit an empty program?

    • 3
      Genius3435  commented on June 5, 2021, 8:35 a.m.

      A quine is a non-empty computer program that...

  • 11
    georgezhang006  commented on Sept. 10, 2020, 3:20 p.m.

    Bru, so many people copied from the wikipedia page w/out even removing the comments!

  • -6
    Max01110  commented on March 26, 2020, 4:30 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.

  • 1
    Plasmatic  commented on Feb. 22, 2019, 10:34 a.m.

    Apparently you're not allowed to open files for this question?

  • 3
    Kirito  commented on Nov. 13, 2016, 10:53 a.m.

    All newlines are stripped from the end of lines to normalize \r\n to \n.