[ create a new paste ] login | about

dennyrolling

Name: Denny Gursky
Email:
Site/Blog:
Location: Pacific Northwest
Default language: C++
Favorite languages:
About:

Saved pastes by dennyrolling:

Python, pasted on Nov 6:
1
2
3
4
5
for i in range(1, 101):
  if i % 3 == 0 and i % 5 == 0: print "fizzbuzz"
  elif i % 3 == 0: print "fizz"
  elif i % 5 == 0: print "buzz"
  else: print i
view (5 lines, 100 lines of output)
C++, pasted on May 24:
1
2
3
4
#include <iostream>
#include <stdlib.h>

using namespace std;
...
view (22 lines, 100 lines of output)
C++, pasted on May 24:
1
2
3
4
#include <iostream>
#include <stdlib.h>

using namespace std;
...
view (22 lines, 100 lines of output)
Python, pasted on Jan 20:
1
2
3
4
5
def expt(x, y): 
 z = 1 
 while (y > 0): 
   if (y % 2 == 0):
     y = y/2
...
view (16 lines, 15 lines of output)
C++, pasted on Jan 14:
1
2
3
4
5
int main() {
char *dst, *src;
for(int i = 0; i < 10; ++i);
{
*dst[i]++ = *src[i]++;
...
view (8 lines, 3 lines of output)
C, pasted on Jan 14:
1
2
3
4
5
int main() {
char *dst, *src;
for(int i = 0; i < 10; ++i);
{
*dst[i]++ = *src[i]++;
...
view (8 lines, 4 lines of output)
C, pasted on Dec 24:
1
2
3
4
for(int i = 0; i < 10; ++i);
{
*dst[i]++ = *src[i]++;
}
view (4 lines, 4 lines of output)
Python, pasted on Jun 17:
1
2
3
4
5
import random
def c():
   r = []
   for pa in a:
     r.append(random.random() * pa)
...
view (23 lines, 1 line of output)
C++, pasted on Jun 13:
1
2
3
4
5
class A {
public:
  static bool Aa() {
    return  false;
   }
...
view (14 lines, 1 line of output)
C++, pasted on Mar 17:
1
#define 0 1
view (1 line, 1 line of output)
C++, pasted on Mar 16:
1
2
3
4
5
#include <stdio.h>
const int s = 62;
#define TERM throw (short)(__LINE__)
class bn {
short d[s];
...
view (45 lines, 1 line of output)
C++, pasted on Mar 14:
1
2
3
4
5
#define D0(X) ((X)?1:0)
#define D1(X) ((X)?(1+D0((X)/10)):0)
#define D2(X) ((X)?(1+D1((X)/10)):0)
#define D3(X) ((X)?(1+D2((X)/10)):0)
#define D4(X) ((X)?(1+D3((X)/10)):0)
...
view (21 lines, 1 line of output, 1 comment)