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
43:195-88:104-25:451-45:061-99:400-95:069-58:500
-
1 2 3 4 5 6 7
#include <stdio.h> int main(void) { int x; for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x)); return 0; }
-
1 2 3 4 5 6 7
#include <stdio.h> int main(void) { int x; for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x)); return 0; }
-
1 2 3 4 5 6 7
#include <stdio.h> int main(void) { int x; for(; scanf("%d",&x) > 0 && x != 42; printf("%d\n", x)); return 0; }
-
1
Nice
-
1
-
1 2 3 4 5 6 7 8 9
/*Program to run a batch of determinant calculations and compute roots of a quadratic equation It reads the three coefficients from input and prints out 2, 1 or no roots depending on result of determinant */ //Get some external components to help with printing and formatting //Class 'java.io.*' the compiler will look at all classes in the java.io package containing the .class files for reading and writing data /*Class'util' Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array) */ /*The class Math contains methods for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions */ //Here Math is used to perform square root function
...
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5 6 7 8
public class Const1 { static { System.out.println("Static"); Const1(); }
...
-
1 2 3 4 5 6 7 8
class Const1 { static { System.out.println("Static"); Const1(); }
...
-
1 2 3 4 5 6 7
public class Shop { public static void main(String value[]) { System.out.println(value [0] + " " + value[value.size()-1]); } }
-
1 2 3 4 5 6 7 8
public class Const1 { static { System.out.println("Static"); Const1(); }
...
-
1 2 3 4 5 6 7 8 9
public class Q12 { public static void main(String[] args) { int x = 4; int y = 13; do {
...
-
1 2 3 4 5 6 7 8 9
public class Test3 { public static void main(String as[]) { int array1[] = { 1, 2, 3}; double array2[] = new double [3]; System.arrayCopy(array1,0,array2,0,array1.length); for(int val : array2
...
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5
<?php $id = '3.84378563731E+14'; echo (float)$id; echo number_format((float)$id); ?>
-
1 2 3 4 5 6 7 8 9
class a { public static void main(String args[])throws InterruptedException { Thread t= new Thread(); Thread u=Thread.currentThread(); System.out.println(t); System.out.println(u);
...
-
1 2 3 4 5 6 7 8
class A{ public static void main(String[] args) { String test = "This is a test"; String[] tokens = test.split("?/s"); System.out.println(tokens.length); } }
-
1 2 3 4 5 6 7 8
class A{ public static void main(String[] args) { String test = "This is a test"; String[] tokens = test.split("/s"); System.out.println(tokens.length); } }
-
1 2 3 4 5 6 7 8
class A{ public static void main(String[] args) { String test = "Thisisatest"; String[] tokens = test.split("/s"); System.out.println(tokens.length); } }
-
1 2 3 4 5 6 7 8
program countergame; var counters: integer; procedure initialise(noOfCounters:integer); var i,j:integer;
...
-
1 2 3 4 5 6 7 8 9
class DayMonthDemo{ public static void main(String args[]){ int num = Integer.parseInt(args[0]); int days = num%30; int month = num/30;
...
-
1 2 3 4 5 6 7 8 9
/* * NumberUtility.java * * Source: http://www.freejavaguide.com */ import java.math.BigDecimal; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols;
...
-
1 2 3 4 5 6 7 8 9
String str1="Hello"; String str2="Hello"; String str3=new String("Hello") //Using constructor. If(str1 == str2 ) System.out.println("Equal 1"); Else System.out.println("Not Equal 1"); If(str1 == str3)
...
-
1 2 3 4 5 6 7 8 9
public class JavaStringExample{ public static void main(String args[]){ String str1 = new String(""); String str2 = new String("Hello world"); String str3 = "Hello Wolrd"; System.out.println( str1.length());
...
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5 6
void main (String[] args) { java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in)); String s; while (!(s=notNull(r.readLine())).startsWith("42")) System.out.println(s); }
-
1 2 3 4 5 6 7 8 9
set v=[gets stdin] $v=$v*$v*48/1000 set a=$v/10 $a=$a*10 $a=$v-$a $v=$v/10 puts $v puts "." puts $a


