Recent public codes are listed below. You can filter them by the following programming languages:
- view
- All
- Ada
- Assembler
- Assembler
- AWK (gawk)
- AWK (mawk)
- Bash
- bc
- Brainf**k
- C
- C#
- C++
- C++0x
- C99 strict
- CLIPS
- Clojure
- COBOL
- COBOL 85
- Common Lisp (clisp)
- D (dmd)
- Erlang
- F#
- Factor
- Falcon
- Forth
- Fortran
- Go
- Groovy
- Haskell
- Icon
- Intercal
- Java
- JavaScript (rhino)
- JavaScript (spidermonkey)
- Lua
- Nemerle
- Nice
- Nimrod
- Objective-C
- Ocaml
- Oz
- Pascal (fpc)
- Pascal (gpc)
- Perl
- Perl 6
- PHP
- Pike
- Prolog (gnu)
- Prolog (swi)
- Python
- Python 3
- R
- Ruby
- Scala
- Scheme (guile)
- Smalltalk
- SQL
- Tcl
- Text
- Unlambda
- VB.NET
- Whitespace
-
1
object Main{def main(a:Array[String]){Iterator.continually(readLine()).takeWhile(_!=null).foreach({x=>println(x.foldLeft(1)((a,b)=>{a*(b match{case 84=>2;case 70=>2;case 76=>2;case 68=>2;case _=>1})}))})}}
-
1
Iterator.continually(readLine()).takeWhile(_!=null).foreach({x=>println(x.foldLeft(1)((a,b)=>{a*(b match{case 84=>2;case 70=>2;case 76=>2;case 68=>2;case _=>1})}))})
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val dogBreeds = List("Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Great Dane", "Portuguese Water Dog") for (breed <- dogBreeds) if (breed contains "Terrier") println(breed)
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val dogBreeds = List("Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Great Dane", "Portuguese Water Dog") for (breed <- dogBreeds) if (breed contains "Terrier") println breed
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val dogBreeds = List("Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Great Dane", "Portuguese Water Dog") for (breed <- dogBreeds) if breed contains "Terrier" println breed
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val dogBreeds = List("Doberman", "Yorkshire Terrier", "Dachshund", "Scottish Terrier", "Great Dane", "Portuguese Water Dog") for (breed <- dogBreeds) println(breed)
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val configFile = new java.io.File(".myapprc") val configFilePath = if (configFile.exists()) { configFile.getAbsolutePath() } else {
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val configFile = new java.io.File(".myapprc") val configFilePath = if (configFile.exists()) { configFile.getAbsolutePath() } else { configFile.createNewFile()
...
-
1 2 3 4 5 6 7 8 9
object Main { def main(args: Array[String]) { val configFile = new java.io.File(".myapprc") val configFilePath = if (configFile.exists()) { configFile.getAbsolutePath() } else { configFile.createNewFile() configFile.getAbsolutePath()
...
-
1 2 3 4 5 6 7 8
val configFile = new java.io.File(".myapprc") val configFilePath = if (configFile.exists()) { configFile.getAbsolutePath() } else { configFile.createNewFile() configFile.getAbsolutePath() }
-
1 2 3 4 5 6 7 8
(define (margreteborg row col) (cond ((< row col) #f) ((or (= 0 col) (= row col)) 1) (else (+ (margreteborg (- row 1) col) (margreteborg (- row 1) (- col 1)))))) N (margreteborg 2 2)+(margreteborg 3 2)+(margreteborg 11 2) (margreteborg 6 3)+(margreteborg 3 2) .(margreteborg 12 5)- (margreteborg 5 3)
...
-
1 2 3 4 5 6 7 8
def grand() = { if (2 > 3) "bees" else "honey" } grand
-
1 2 3 4 5 6 7 8
import scala.util.Random.shuffle /** Surpresinha Mega-Sena. */ object Main { def main(args: Array[String]) { println(shuffle(1 to 60 toSeq) take 6) } }
-
1 2 3 4 5 6 7
import scala.util.Random.shuffle object Main { def main(args: Array[String]) { println(shuffle(1 to 60 toSeq) take 6) } }
-
1 2 3 4 5
import scala.util.Random.shuffle object Main extends App { println(shuffle(1 to 60 toSeq) take 6) }
-
1 2 3 4 5
import java.io.{BufferedReader, InputStreamReader} object Main extends App { println(shuffle(1 to 60 toSeq) take 6) }
-
1
shuffle(1 to 60 toSeq) take 6
-
1 2 3 4 5 6 7 8 9
xb1lIHRvIG5lYnlsbyB0xJvFvmvDqT8gSmVuIHBybyDDunBsbm9zdCBwcm8gbm9ybcOhbG7DrSAo dGVkeSBuZXBvxI3DrXRhxI1vdsO9KSAgbGlkIC0gcHJvxI0gUG/FoXRvdm7DrT8gIEvDs2QgQmFz ZTY0LCBrdGVyw71tIGplIHRlbmhsZSB0ZXh0IHpha8OzZG92w6FuLCBwb3XFvsOtdsOhdGUgbWou ICAoYW5pxb4gdG8gdMWZZWJhIHbDrXRlKSB2ZSB2xaFlY2ggdmHFoWljaCBlbWFpbG92w71jaCB6 cHLDoXbDoWNoIGsgdG9tdSwgYWJ5IHNlIGsgdsOhbSBuZWJvIG9kIHbDoXMgZG9ixZllIHDFmWVu ZXNseSB2xaFlY2hueSBWYcWhZSBmb3RreSwgdmlkZWEsIHRleHR5IHMgxI1lc2tvdSBkaWFrcml0 aWtvdSBhIGppbsOpIHZ5Y2h5dMOhdmt5IChvYmVjbsOhIGJpbsOhcm7DrSBkYXRhIHNlIGvDs2R1 asOtIHBvIDYgYml0ZWNoIGRvIHRpc2tudXRlbG7DvWNoIDY0IHpuYWvFrywga3RlcsOpIGpzb3Ug cMWZZW5vc2l0ZWxuw6EgcG/FoXRvdm7DrW0gIE1JTUUgcHJvdG9rb2xlbSkuIFRha8W+ZSAgdGFr
...
-
1 2 3 4 5 6 7 8
public class B extends A{ public static void main(String argv[]){ short s = 9; A a= new A(); System.out.println(a.add(9,6));
...
-
1 2 3 4 5 6 7 8 9
public class A { int add(int i, int j){ return i+j; } }
...
-
1 2 3 4 5 6 7 8 9
import java.io.{BufferedReader, InputStreamReader} object Main { def main(args: Array[String]) { var stdin = new BufferedReader(new InputStreamReader(System.in)); var line = stdin.readLine(); while(false == line.equals("42")) { System.out.println(line);
...
-
1 2 3 4 5
object Hello { def main(args: Array[String]) { println("hello world") } }
-
1 2 3
object Hello extends Application { println("hello world") }
-
1 2 3 4 5
object main { def main(args:Array[String]) : void { println("Hi online") } }
-
1 2 3
object main { println("Hello") }
-
1 2 3 4 5
object Main { def main(args: Array[String])={ println("HAI I HAS A KAT") } }
-
1 2 3 4 5
object foo { def main(args: Array[String])={ println("HAI I HAS A KAT") } }
-
1 2 3 4 5
object var { def main(args: Array[String])={ println("HAI I HAS A KAT") } }
-
1 2 3
object HelloWorld extends App { println("Hello, world!") }
-
1 2 3 4 5 6 7 8 9
import annotation.tailrec abstract class Tree(val left: Tree) { def o = new Ball(this) def x = new Spike(this) def * = new Candle(this) def oxo = new BigBall(this) def oo = new DoubleBall(this) def *** = new ElectricCandle(this)
...


