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
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())
-
1 2 3 4 5 6 7 8 9
# cheerleading program word = raw_input("Who do you go for? ") for letter in word: call = "Gimme a " + letter + "!" print call print letter + "!" print "What does that spell?"
-
1
print((28433*2**7830547+1)%(10**10))
-
1
import turtle
-
1
print(42)
-
1 2 3 4
a = 1 b = 2 c = a + b print(c)
-
1
print(42)
-
1 2 3 4 5 6 7
a,b = 3,2 count=0 for i in range(1000): if len(str(a)) > len(str(b)): count+=1 a,b=a+b+b,a+b print(count)
-
1 2 3 4 5 6 7
import re string = r'''<p>$$(Dialog_BasicDialog_Content)</p>''' regex = re.compile("\$\$\(.*?\)") r = regex.search(string) v = regex.findall(string) for item in sorted(v): print item
-
1 2 3 4 5 6
import re string = r'''<p>$$(Dialog_BasicDialog_Content)</p>''' regex = re.compile("\$\$\(.*?\)") r = regex.search(string) v = regex.findall(string) for item in sorted(v): print item
-
1 2 3 4 5 6 7
def silnia(n): #(1) print 'n =', n #(2) if n > 1: #(3) return n * silnia(n - 1) else: #(4) print 'koniec' return 1
-
1
print(42)
-
1 2 3 4 5 6 7 8 9
#-*- coding: utf-8 -*- def buildConnectionString(params): return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) if __name__ == "__main__": myParams = {"server":"mpilgrim", \ "database":"master", \
...
-
1 2 3 4 5 6 7 8 9
#-*- coding: utf-8 -*- def buildConnectionString(params): u return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) if __name__ == "__main__": myParams = {"server":"mpilgrim", \ "database":"master", \
...
-
1 2 3 4 5 6 7 8 9
#-*- coding: utf-8 -*- def buildConnectionString(params): u"""Tworzy łańcuch znaków na podstawie słownika parametrów. Zwraca łańcuch znaków.""" return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) if __name__ == "__main__":
...
-
1 2 3 4 5 6 7 8
#-*- coding: utf-8 -*- def buildConnectionString(params): u"""Tworzy łańcuch znaków na podstawie słownika parametrów. Zwraca łańcuch znaków. """ return ";".join(["%s=%s" % (k, v) for k, v in params.items()])
...
-
1 2 3 4 5 6 7 8 9
import datetime print 'Now :', datetime.datetime.now() print 'Today :', datetime.datetime.today() print 'UTC Now:', datetime.datetime.utcnow() d = datetime.datetime.now() for attr in [ 'year', 'month', 'day', 'hour', 'minute', 'second', 'microsecond']: print attr, ':', getattr(d, attr)
-
1 2 3 4
import datetime now = datetime.datetime.now() date_time = now.strftime('%m-%d-%Y %H:%M')


