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
print(typeof(range(10)))
-
1
print(range(10)[3])
-
1 2 3 4 5 6 7 8 9
class RebelAllianceComm: def countFrequencies(_self_,A, k, m): a = set() while A not in a a.add(a) a=(a*k)%m return a.size() countFrequencies(63456, 99997, 100000)
-
1 2 3 4 5 6 7 8 9
def printSingle(number, letter, spacer): print "%s%c" % (spacer*(number-1), letter) def printDouble(number, index, letter, spacer): secondSpace = spacer*(index*2) secondSpace = secondSpace[:-1] print "%s%c%s%c" % (spacer*(number-index-1), chr(ord(letter)+index), secondSpace, chr(ord(letter)+index)) def diamond(number, letter, spacing):
...
-
1 2 3 4 5 6 7 8 9
import base64 # Het is leuker dan het lijkt, want er staan 'maar' 8 berichten op het forum. # We hebben het wachtwoord geanalyseerd kunnen opvragen via not-so-bruteforce.py # Toepassen is verder triviaal, per bericht gaat de bit omhoog, maar is niet # afhankelijk van de rest van de berichten. def decrypt(msg, password, bit): result = ''
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = list(filter(f, col)) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): try: ix = find_if(lambda x: x[0] == str(data), type(self).strlist)
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = filter(f, col) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), type(self).strlist) if ix >= -1:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = list(filter(f, col)) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): try: ix = find_if(lambda x: x[0] == str(data), type(self).strlist)
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = list(filter(f, col)) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), type(self).strlist) try:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = list(filter(f, col)) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), type(self).strlist) if ix >= -1:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = filter(f, col) return col.index(x[0]) class Symbol(object): strlist = [] def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), type(self).strlist) if ix >= -1:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = filter(f, col) return col.index(x[0]) class Symbol(object): strlist = {} def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), type(self).strlist) if ix >= -1:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = filter(f, col) return col.index(x[0]) class Symbol(object): strlist = {} def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), strlist) if ix >= -1:
...
-
1 2 3 4 5 6 7 8 9
def find_if(f, col): x = filter(f, col) return col.index(x[0]) class Symbol(object): strlist = {} def __init__(self, data): ix = find_if(lambda x: x[0] == str(data), strlist) if ix >= -1:
...
-
1
print("\u1f63c")
-
1 2 3 4 5 6 7 8 9
from random import randint secret = randint(1,100) print("Welcome") guess = 0 while guess != secret: g = input("Guess the number")
...
-
1 2 3 4 5 6 7 8 9
s = int(input()) for i in range(s): w = input().split() li = [] for j in range(1, int(w[0])): if (int(j) % int(w[1]) == 0) and (int(j) % int(w[2]) != 0): li.append(str(j))
...
-
1 2 3 4 5 6 7 8 9
s = int(input()) for i in range(s): w = input().split() li = [] for j in range(1, int(w[0])): if (int(j) % int(w[1]) == 0) and (int(j) % int(w[2]) != 0): li.append((j))
...
-
1 2 3 4 5 6 7 8 9
s = int(input()) for i in range(s): w = input().split() li = [] for j in range(1, int(w[0])): if (int(j) % int(w[1]) == 0) and (int(j) % int(w[2]) != 0): li.append(int(j))
...
-
1 2 3 4 5 6 7 8 9
s = int(input("chuj")) for i in range(s): w = input().split() li = [] for j in range(1, int(w[0])): if (int(j) % int(w[1]) == 0) and (int(j) % int(w[2]) != 0): li.append(int(j))
...
-
1 2 3 4 5 6 7 8 9
s = int((input())) # testy for i in range(s): w = input().split() pa = [el for x, el in w[1:] if int(x-1) % 2 == 0] niepa = [el for x, el in w[1:] if int(x-1) % 2 == 1] print(' '.join(pa + niepa)) #print(' '.join(niepa))
-
1 2 3 4 5 6 7 8 9
s = int((input())) # testy for i in range(s): w = input().split() pa = [el for el in w[1:] if int(i-1) % 2 == 0] niepa = [el for el in w[1:] if int(i-1) % 2 == 1] print(' '.join(pa + niepa)) #print(' '.join(niepa))
-
1 2 3 4 5 6 7 8 9
s = int((input())) # testy for i in range(s): w = input().split() pa = [el for el in w[1:] if int(i) % 2 == 0] niepa = [el for el in w[1:] if int(i) % 2 == 1] print(' '.join(pa + niepa)) #print(' '.join(niepa))
-
1 2 3 4 5 6 7 8 9
s = int((input())) # testy for n, i in range(s): w = input().split() pa = [el for el in w[1:] if int(n) % 2 == 0] niepa = [el for el in w[1:] if int(n) % 2 == 1] print(' '.join(pa + niepa)) #print(' '.join(niepa))
-
1 2 3 4 5 6 7 8 9
s = int((input())) # testy for i in range(s): w = input().split() pa = [el for el in w[1:] if int(el) % 2 == 0] niepa = [el for el in w[1:] if int(el) % 2 == 1] print(' '.join(pa + niepa)) #print(' '.join(niepa))
-
1 2 3 4 5 6 7 8 9
''' Created on 17-Jul-2011 @author: Naresh ''' def nextPalindrome1(pal): length = len(pal) if (length & 1 == 0):
...
-
1 2 3 4 5
#!/usr/bin/python str = "this is string example....wow!!! this is really string"; print str.replace("is", "was"); print str.replace("is", "was", 3);
-
1 2 3 4
n = int(input()) while n != 42: print(n) n = int(input())
-
1 2 3 4
n = int(input()) while n != 42: print(n) n = int(input())
-
1 2 3 4
n = int(input()) while n != 42: print(n) n = int(input())


