[ create a new paste ] login | about

PiRSquared

Name: removed name
Email:
Site/Blog: http://I-removed-my-website.org
Location:
Default language:
Favorite languages:
About:

Saved pastes by PiRSquared:

Python, pasted on Apr 10:
1
2
3
4
5
def Q(code):
	stack = [0, 0, 0, 0, 0, 0, 0, 0]
	top = -1
	i = 0
	conditions = 1
...
view (62 lines, 1 line of output)
C, pasted on Mar 17:
1
2
3
4
5
\
 \
  \
   \
#def\
...
view (89 lines, 1 line of output)
C, pasted on Mar 15:
1
2
3
4
5
\
 \
  \
   \
#def\
...
view (67 lines, 1 line of output)
C, pasted on Mar 15:
1
int main(){int i=0;char *o="!dlrow olleH";for (;i<13;++i){printf("%c",o[12-i]);}return 0;}
view (1 line, 1 line of output)
C, pasted on Mar 14:
1
2
3
4
5
#def\
ine _\
(    v\
ar,  in\
fo)   va\
...
view (63 lines, 1 line of output)
C, pasted on Mar 14:
1
2
3
4
5
int main()
{
 printf("Happy Pi Day! \n");
 return piCalc();
}
...
view (19 lines, 2 lines of output)
C++, pasted on Mar 14:
1
2
3
4
5
int piCalc()
{
 float i=3;
 int j=1;
 float k=1;
...
view (18 lines, 2 lines of output)
C, pasted on Mar 14:
1
2
3
4
5
#include <math.h>
#include <float.h>
int main()
{
 printf("Happy Pi Day! \n");
...
view (21 lines, 2 lines of output)
C, pasted on Mar 14:
1
2
3
4
5
#include <math.h>
#include <float.h>
int main()
{
 printf("Happy Pi Day! \n");
...
view (21 lines, 2 lines of output)
C, pasted on Mar 14:
1
2
3
4
5
#include <string.h>
#define _ int a=
#defi\
ne fi\
le ||\
...
view (31 lines, 1 line of output)
C, pasted on Mar 14:
1
2
3
4
5
#include <string.h>
#define _ int a=
#defi\
ne fi\
le ||\
...
view (31 lines, 1 line of output)
C++, pasted on Mar 13:
1
int main(){int i=1;for(i;i<101;++i){if(i%3<1){printf("Fizz");}if(i%5<1){printf("Buzz");}if(i%3>0&&i%5>0){printf("%i",i);}printf("\n");}return 0;}
view (1 line, 100 lines of output)
C, pasted on Mar 13:
1
void main(){int i=1;for(i;i<101;++i){if(i%3<1){printf("Fizz");}if(i%5<1){printf("Buzz");}if(i%3&&i%5){printf("%i",i);}printf("\n");}}
view (1 line, 100 lines of output)
C, pasted on Mar 13:
1
void main(){int i=1;for(i;i<101;++i){if(i%3<1){printf("Fizz");}if(i%5<1){printf("Buzz");}if(i%3>0&&i%5>0){printf("%i",i);}printf("\n");}}
view (1 line, 100 lines of output)
C, pasted on Mar 13:
1
2
3
#include <string.h>
#include <stdio.h>
void main(){int i=1;for(i;i<101;++i){if(i%3<1){printf("Fizz");}if(i%5<1){printf("Buzz");}if(i%3>0&&i%5>0){printf("%i",i);}printf("\n");}}
view (3 lines, 100 lines of output)
Tcl, pasted on Mar 13:
1
2
3
4
5
for {set i 1} {$i<101} {incr i} {
    set x ""
    if {$i%3<1} { set x "Fizz" }
    if {$i%5<1} { set x "$x\Buzz" }
    if {$i%3>0&&$i%5>0} { set x $i }
...
view (7 lines, 100 lines of output)
Tcl, pasted on Mar 13:
1
2
3
4
5
for {set i 1} {$i <= 100} {incr i} {
    set x ""
    if {$i%3<1} { set x "Fizz" }
    if {$i%5<1} { set x "$x\Buzz" }
    if {$i%3>0&&$i%5>0} { set x $i }
...
view (7 lines, 100 lines of output)
Perl, pasted on Mar 13:
1
print+("Fizz")[$_%3].("Buzz")[$_%5]||$_,$/for(1..100)
view (1 line, 100 lines of output)
Python, pasted on Mar 13:
1
2
3
4
5
def defdfedfdf(ddddeffff):
 dfdfdf=ddddeffff.replace(' dd ','e')
 dfdfdf=dfdfdf.replace(' df ','l')
 dfdfdf=dfdfdf.replace(' fd ','o w')
 dfdfdf=dfdfdf.replace(' ff ','orl')
...
view (18 lines, 1 line of output)
Python, pasted on Mar 13:
1
2
3
4
5
ddeff=1
def defdfedfedf(deph):
 return deph
def deaf(deph):
 deff=0
...
view (11 lines, 1 line of output)
C, pasted on Mar 13:
1
2
3
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
...
view (43 lines, 1 line of output)
Python, pasted on Mar 10:
1
2
3
4
5
def fb(a=[[3,"Fizz"],[5,"Buzz"]],b=101):
 for i in range(1,b):
  k=""
  for j in a:
   if i%j[0]<1:k=k+j[1]
...
view (7 lines, 999 lines of output)
Python, pasted on Mar 10:
1
2
3
4
5
def fb(a=[[3,"Fizz"],[5,"Buzz"]],b=101):
 for i in range(1,b):
  k=""
  for j in a:
   if i%j[0]<1:k=k+j[1]
...
view (7 lines, 100 lines of output)
Python, pasted on Mar 10:
1
2
3
4
5
def fb(a=[[3,"Fizz"],[5,"Buzz"]],b=101):
 for i in range(1,b):
  k=""
  for j in a:
   if i%j[0]<1:k=k+j[1]
...
view (7 lines, 100 lines of output)
Python, pasted on Mar 10:
1
2
3
4
5
def fb(a=[[3,"Fizz"],[5,"Buzz"]],b=101):
 for i in range(1,b):
  k=""
  for j in a:
   if i%j[0]<1:k=k+j[1]
...
view (7 lines, 100 lines of output)
Python, pasted on Mar 10:
1
2
3
4
5
def fb(a=[[3,"Fizz"],[5,"Buzz"]],b=101):
 for i in range(1,b):
  k=""
  for j in a:
   if i%j[0]<1:k=k+j[1]
...
view (7 lines, 100 lines of output)
Tcl, pasted on Mar 10:
1
2
3
4
5
for {set i 1} {$i<101} {incr i} {
    set k ""
    if {$i%3<1} {set k "Fizz"}
    if {$i%5<1} {set k "$k\Buzz"}
    if {$i%3>0&&$i%5>0} {set k $i}
...
view (7 lines, 100 lines of output)
Python, pasted on Mar 10:
1
for i in range(1,101):f="Fizz";b="Buzz";a=[f,i,i];print [[f+b,b,b,i],a,a,a,a][i%5][i%3]
view (1 line, 100 lines of output)
Ruby, pasted on Mar 10:
1
(1..100).each{|i|f="Fizz";b="Buzz";a=f,i,i;puts [[f+b,b,b],a,a,a,a][i%5][i%3]}
view (1 line, 100 lines of output)
Scheme, pasted on Mar 8:
1
2
3
4
5
(if (> 0 0) 0 
 (display (
 (lambda (Z)
  ((lambda (pr)
    (Z (lambda (ar) ((pr pr) ar))))
...
view (9 lines, 1 line of output)
Scheme, pasted on Mar 8:
1
2
3
4
5
(define Y
 (lambda (Z)
  ((lambda (pr)
    (Z (lambda (ar) ((pr pr) ar))))
   (lambda (pr)
...
view (11 lines, 1 line of output)
Python, pasted on Mar 8:
1
2
3
4
5
for i in range(1,101):
  if i%3==0:
    if i%5==0:print "FizzBuzz"
    else:print "Fizz"
  if i%5==0 and i%3!=0:print"Buzz"
...
view (6 lines, 100 lines of output)
Python, pasted on Mar 8:
1
for i in range(1,101):print [["FizzBuzz","Buzz","Buzz",0],["Fizz",0,0],["Fizz",0,0],["Fizz",0,0],["Fizz",0,0]][i%5][i%3] or i
view (1 line, 100 lines of output, 1 comment)
Python, pasted on Mar 7:
1
2
3
4
5
for i in range(1,101):
  k=''
  if i%3==0:k='Fizz'
  if i%5==0:k=k+'Buzz'
  print k or i
view (5 lines, 100 lines of output)
Python, pasted on Mar 7:
1
2
3
4
5
for i in range(1,101):
  k=''
  if i%3==0 or i%5==0:
   if i%3==0:k='Fizz'
   if i%5==0:k=k+'Buzz'
...
view (6 lines, 100 lines of output)
Python, pasted on Mar 7:
1
2
3
4
5
for i in range(1,101):
  if i%3==0 or i%5==0:
   k=''
   if i%3==0:k='Fizz'
   if i%5==0:k=k+'Buzz'
...
view (7 lines, 100 lines of output)
Ruby, pasted on Mar 7:
1
p "Hello world!"
view (1 line, 1 line of output)
Python, pasted on Mar 7:
1
2
3
4
5
for i in range(1, 101):
  if not i%3 or not i%5:
   k=''
   if not i%3:k='Fizz'
   if not i%5:k=k+'Buzz'
...
view (7 lines, 100 lines of output)
C, pasted on Feb 28:
1
2
#include <stdio.h>
void main(){printf("Hello world!");}
view (2 lines, 1 line of output)
Python, pasted on Feb 23:
1
2
3
4
5
for i in range(1, 101):
  if (i % 3 == 0) or (i % 5 == 0):
    k = ''
    if (i % 3 == 0):
      k = 'Fizz'
...
view (10 lines, 100 lines of output, 2 comments)
Python, pasted on Feb 23:
1
2
3
4
5
def f(x):
    """(2 * x) + 2"""
    y = 2 * x;
    y = y + 2;
    return y;
...
view (8 lines, 201 lines of output)
Python, pasted on Feb 23:
1
2
3
4
5
def f(x):
    """(2 * x) + 2"""
    y = 2 * x;
    y = y + 2;
    return y;
...
view (8 lines, 19 lines of output)
C, pasted on Feb 23:
1
2
3
4
5
#import <stdio.h>


int main()
{
...
view (13 lines, 100 lines of output)
Python, pasted on Feb 23:
1
2
3
4
5
for i in xrange(1, 101):
  k = ''
  if (i % 3 == 0) or (i % 5 == 0):
    if (i % 3 == 0):
      k = k + 'Fizz'
...
view (10 lines, 100 lines of output, 1 comment)