Search found 4 matches

by Joeb27
Wed Jun 08, 2011 8:31 pm
Forum: Challenges Solved
Topic: Too many digits
Replies: 14
Views: 805

In Python: import httplib h=httplib.HTTPConnection("www.hacker.org") h.putrequest("GET","/challenge/misc/toomany/infinite_number.txt") h.putheader("range","bytes=999999999999999999999999999999999999999999999999999-10000000000000000000000000000000000000000...
by Joeb27
Sat Nov 06, 2010 7:51 pm
Forum: Challenges Solved
Topic: Pi Hates Nines
Replies: 26
Views: 3141

And in one line:

# sed -e 's/9/\n/g' pi-file.txt | sort -n | tail -1


(Replace all '9' by newlines and sort numericaly. The tail just shows the last line.)
by Joeb27
Sat Nov 06, 2010 7:27 pm
Forum: Challenges Solved
Topic: Don't Blink
Replies: 22
Views: 1900

by Joeb27
Sun Oct 17, 2010 2:11 pm
Forum: Challenges Solved
Topic: Valuation
Replies: 103
Views: 8909

Bash shell script: #!/bin/bash STRING="93752xxx746x27x1754xx90x93xxxxx238x44x75xx08750912738x8461x8759383xx328x4x4935903x6x5550360535004x0xx945958961296x267x8842xxx5x6xx61x4x48482x80xxx83316843x7x4x83x9521731xxx25x51xx457x6x5x9698222x771237745034x5133592x27xx8x87xx35221x36x0x50x23x7x63x998418xx...