jfs
|
codepad
|
|
jfs
|
Saved pastes by jfs:
print('# 7.')
def isNonIncreasing(l):
for i, el in enumerate(l[1:]):
if el >= l[i]:
return False
|
view (6 lines, 1 line of output) |
def nincr_seq_ivlad(seq):
dp = [1]*len(seq)
for i, ei in enumerate(seq):
for j in xrange(i):
if seq[j] < ei:
|
view (14 lines, 6 lines of output) |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""justin homework"""
from __future__ import with_statement
import re
|
view (21 lines, 1 line of output) |
// $ g++ -std=c++0x -Wall alec.cpp -o alec && ./alec
#include <stdint.h> // uint64_t
#include <iostream>
namespace {
|
view (44 lines, 3 lines of output) |