Quine
View as PDF        
            Submit solution
        
    
    
    
    
    
    
    
    
    
                    
                
        
            
        
        Points:
        
                10        
    
    
        Time limit:
        1.0s
    
    
        Memory limit:
        64M
    
    
                        Author:
                        
                    
        
                    Problem type                
                
        
                Allowed languages
            
            
Ada, ALGOL 68, Assembly, Awk, Brain****, C, C#, C++, COBOL, CommonLisp, D, Dart, F#, Forth, Fortran, Go, Groovy, Haskell, Intercal, Java, JavaScript, 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            
        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, has tasked you with writing such a program.
Input Specification
There is no input.
Output Specification
The source code of your program.
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
Bru, so many people copied from the wikipedia page w/out even removing the comments!
This comment is hidden due to too much negative feedback. Show it anyway.
Apparently you're not allowed to open files for this question?
ye
yes you can open files https://dmoj.ca/submission/1311914
also, https://dmoj.ca/submission/1460516
Hmm.... Odd...
Previously when I tried opening the source file while attempting this question it got WA
You have to remove the leading spaces and tabs in your code for it to work I think.
All newlines are stripped from the end of lines to normalize
\r\nto\n.