<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PyGolf &#8211; Winner of competition 1</title>
	<atom:link href="http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/</link>
	<description>Tech ramblings of Greg Darke, a University of Sydney student</description>
	<lastBuildDate>Thu, 14 Jan 2010 04:33:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: James</title>
		<link>http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/comment-page-1/#comment-592</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 05 Feb 2009 04:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=55#comment-592</guid>
		<description>Leaving out regexes is just not cool:

import sys,re
d={}
exec(re.sub(&#039;([^\s]*).*?([^\s]*?\n)&#039;,r&#039;d[&quot;\1&quot;]=d.get(&quot;\1&quot;,0)+\2&#039;,sys.stdin.read()))
print d

(ok, I&#039;m not doing as much error checking)</description>
		<content:encoded><![CDATA[<p>Leaving out regexes is just not cool:</p>
<p>import sys,re<br />
d={}<br />
exec(re.sub(&#8216;([^\s]*).*?([^\s]*?\n)&#8217;,r&#8217;d["\1"]=d.get(&#8220;\1&#8243;,0)+\2&#8242;,sys.stdin.read()))<br />
print d</p>
<p>(ok, I&#8217;m not doing as much error checking)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathew</title>
		<link>http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/comment-page-1/#comment-228</link>
		<dc:creator>Mathew</dc:creator>
		<pubDate>Sat, 06 Dec 2008 00:55:18 +0000</pubDate>
		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=55#comment-228</guid>
		<description>Well done Katie! However, this is what I achived in Ruby in 63 chars!

m=Hash.new(0);STDIN.map{&#124;l&#124;m[l[/^\S+/]]+=l[/\d+\s+$/].to_i};p m

:)</description>
		<content:encoded><![CDATA[<p>Well done Katie! However, this is what I achived in Ruby in 63 chars!</p>
<p>m=Hash.new(0);STDIN.map{|l|m[l[/^\S+/]]+=l[/\d+\s+$/].to_i};p m</p>
<p>:)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Katie</title>
		<link>http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/comment-page-1/#comment-211</link>
		<dc:creator>Katie</dc:creator>
		<pubDate>Sun, 30 Nov 2008 03:08:50 +0000</pubDate>
		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=55#comment-211</guid>
		<description>Win! :D
Just don&#039;t try it with big numbers. :P</description>
		<content:encoded><![CDATA[<p>Win! :D<br />
Just don&#8217;t try it with big numbers. :P</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SI</title>
		<link>http://blag.tsukasa.net.au/2008/11/29/pygolf-winner-of-competition-1/comment-page-1/#comment-209</link>
		<dc:creator>SI</dc:creator>
		<pubDate>Sat, 29 Nov 2008 13:22:46 +0000</pubDate>
		<guid isPermaLink="false">http://blag.tsukasa.net.au/?p=55#comment-209</guid>
		<description>Well done katie :D

Goes to show when you decide to use regex for one problem, you just end up with two problems ;-)</description>
		<content:encoded><![CDATA[<p>Well done katie :D</p>
<p>Goes to show when you decide to use regex for one problem, you just end up with two problems ;-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
