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, Lua, Nim, ObjC, OCaml, Octave, Pascal, Perl, Pike, Prolog, Python, 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
    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!

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

    This comment is hidden due to too much negative feedback. Click here to view it.

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

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

  • 5
    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.