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 2 3 4 5 6 7 8 9
a = [] i = 0 for i in range(1, 10000000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 10000000: s += c c += 3 while u < 10000000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 100000: s += c c += 3 while u < 100000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 10000: s += c c += 3 while u < 10000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 1000: s += c c += 3 while u < 1000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 1000: s += c c += 3 while u < 1000: if u%15==0:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 1000000000: s += c c += 3 while u < 1000000000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 1000000000: s += c c += 3 while u < 1000000000: if u%15==0:
...
-
1 2 3 4 5 6 7 8 9
c = 0 s = 0 u = 0 while c < 1000: s += c c += 3 while u < 1000: if u%15==1:
...
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in xrange(1, 10000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in range(1, 10000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in range(1, 1000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in xrange(1, 1000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in xrange(1, 1000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
a = [] i = 0 for i in range(1, 1000): if i%3==0 or i%5==0: a.append(i) i += 1 print sum(a)
-
1 2 3 4 5 6 7 8 9
import sys def fib(n): a = 5**0.5 return (1/a)*(power((1+a)/2,n)-power((1-a)/2,n)) def power(a,b): if b==1: return a else :
...
-
1 2 3 4 5 6 7 8 9
t=int(raw_input()) while(t): num=-1 b,a=[],[] #n=int(raw_input()) b=raw_input().split() a=raw_input().split() i=0 while(i<len(a)):
...
-
1 2 3 4 5 6 7 8 9
def merge_sort(arr,s): global cnt n = len(arr) if n <= 1: return arr mid=n/2 first_half = merge_sort(arr[0:mid],s) second_half = merge_sort(arr[mid:n],s) temp=merge(first_half,second_half,s)
...
-
1 2 3 4 5 6 7 8 9
def merge_sort(arr,s): global cnt n = len(arr) if n <= 1: return arr mid=n/2 first_half = merge_sort(arr[0:mid],s) second_half = merge_sort(arr[mid:n],s) temp=merge(first_half,second_half,s)
...
-
1 2 3 4 5 6 7 8 9
def merge_sort(arr,s): global cnt n = len(arr) if n <= 1: return arr mid=n/2 first_half = merge_sort(arr[0:mid],s) second_half = merge_sort(arr[mid:n],s) temp=merge(first_half,second_half,s)
...
-
1 2 3 4 5 6 7 8
a = [[]] * 4 print a a[0].extend([1,2]) a[-2].extend([3,4]) print a
-
1 2 3 4 5 6 7 8
a = [list() for n in xrange(4)] print a a[0].extend([1,2]) a[-2].extend([3,4]) print a
-
1 2 3 4 5 6 7 8 9
t=int(raw_input()) while(t): num=-1 b,a=[],[] n=int(raw_input())
...
-
1 2 3 4 5 6 7 8 9
t=int(raw_input()) while(t): num=-1 b,a=[],[] n=int(raw_input())
...
-
1 2 3 4 5 6 7 8 9
t=int(raw_input()) while(t): num=-1 b,a=[],[] #n=int(raw_input())
...
-
1 2 3 4 5 6 7 8 9
t=int(raw_input()) while(t): num=-1 b,a=[],[] #n=int(raw_input()) b=raw_input().split() a=raw_input().split() i=0 while(i<len(a)):
...
-
1
tuple(1,2,3)
-
1 2 3 4 5 6 7 8 9
def bonacci(x, y): x = x+y n = n-1 print x def bonacci2(x, y): y = y+x n = n-1 print y
...
-
1 2 3 4 5 6
for i in range(10): print 'O', for j in range(10): print 'O', print
-
1 2 3 4
for i in range(10): for j in range(10): print 'O', print


