<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="http://cs1.utm.edu/icpc/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://cs1.utm.edu/icpc/feed.php">
        <title>UT Martin Competitive Programming Guidebook files:python3</title>
        <description></description>
        <link>http://cs1.utm.edu/icpc/</link>
        <image rdf:resource="http://cs1.utm.edu/icpc/lib/tpl/dokuwiki/images/favicon.ico" />
       <dc:date>2026-05-03T00:34:56+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://cs1.utm.edu/icpc/doku.php?id=files:python3:alphabet&amp;rev=1536960721&amp;do=diff"/>
                <rdf:li rdf:resource="http://cs1.utm.edu/icpc/doku.php?id=files:python3:hello&amp;rev=1533831887&amp;do=diff"/>
                <rdf:li rdf:resource="http://cs1.utm.edu/icpc/doku.php?id=files:python3:input_tests&amp;rev=1534369267&amp;do=diff"/>
                <rdf:li rdf:resource="http://cs1.utm.edu/icpc/doku.php?id=files:python3:output_tests&amp;rev=1534369122&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://cs1.utm.edu/icpc/lib/tpl/dokuwiki/images/favicon.ico">
        <title>UT Martin Competitive Programming Guidebook</title>
        <link>http://cs1.utm.edu/icpc/</link>
        <url>http://cs1.utm.edu/icpc/lib/tpl/dokuwiki/images/favicon.ico</url>
    </image>
    <item rdf:about="http://cs1.utm.edu/icpc/doku.php?id=files:python3:alphabet&amp;rev=1536960721&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-09-14T16:32:01+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>files:python3:alphabet</title>
        <link>http://cs1.utm.edu/icpc/doku.php?id=files:python3:alphabet&amp;rev=1536960721&amp;do=diff</link>
        <description>Kattis: Prime Sieve



Python3 Source


# Modified from CLRS3e
def LCS(x,y):
    m, n = len(x), len(y)
    C = [[0] * (n + 1) for i in range(m+1)]
    for i in range(1, m+1):
        for j in range(1, n+1):
            if x[i-1] == y[j-1]:
                C[i][j] = C[i-1][j-1] + 1
            else:
                C[i][j] = max(C[i][j-1], C[i-1][j])
    return C[-1][-1]

a = list(input())
b = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', \
'q', 'r', 's', 't', '…</description>
    </item>
    <item rdf:about="http://cs1.utm.edu/icpc/doku.php?id=files:python3:hello&amp;rev=1533831887&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-09T11:24:47+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>files:python3:hello</title>
        <link>http://cs1.utm.edu/icpc/doku.php?id=files:python3:hello&amp;rev=1533831887&amp;do=diff</link>
        <description>Hello World in Python3


print(&quot;Hello World!&quot;)


“Hello World!” in Python3 in 22 characters.</description>
    </item>
    <item rdf:about="http://cs1.utm.edu/icpc/doku.php?id=files:python3:input_tests&amp;rev=1534369267&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-15T16:41:07+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>files:python3:input_tests</title>
        <link>http://cs1.utm.edu/icpc/doku.php?id=files:python3:input_tests&amp;rev=1534369267&amp;do=diff</link>
        <description>num_lines = int(input())

for i in range(num_lines):
    line = input()



from sys import stdin

num_lines = int(input())

for i in range(num_lines):
    line = stdin.readline()



from sys import stdin

num_lines = int(input())

lines = stdin.readlines()</description>
    </item>
    <item rdf:about="http://cs1.utm.edu/icpc/doku.php?id=files:python3:output_tests&amp;rev=1534369122&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-08-15T16:38:42+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>files:python3:output_tests</title>
        <link>http://cs1.utm.edu/icpc/doku.php?id=files:python3:output_tests&amp;rev=1534369122&amp;do=diff</link>
        <description>Tests make use of timeit to ensure we are only measuring print() and write(). 


import timeit
import sys

setup = &quot;&quot;&quot;
from sys import stdin

num_lines = int(input())
lines = stdin.readlines()


def myFun(stuff):
    for line in stuff:
        print(line)
&quot;&quot;&quot;

print(timeit.timeit(&quot;myFun(lines)&quot;, number=5, setup=setup), file=sys.stderr)</description>
    </item>
</rdf:RDF>
