Search found 4 matches

by PainKeeper
Tue Jul 26, 2011 11:46 am
Forum: Challenges Solved
Topic: A Piece of Pi
Replies: 7
Views: 829

same like first post, but maybe link changed.

http://www.angio.net/pi/bigpi.cgi
by PainKeeper
Tue Jul 26, 2011 10:42 am
Forum: Challenges Solved
Topic: Pi Hates Nines
Replies: 26
Views: 3330

Code: Select all

#perl
open (HD, "<pi1000000.txt") || die "file not found";
$pi = <HD>;
close (HD);

@bla = split (/9/, $pi);
@foo = reverse sort {length $a <=> length $b} @bla;
print @foo[0];
by PainKeeper
Fri Jul 22, 2011 3:08 pm
Forum: Challenges Solved
Topic: RedEye
Replies: 12
Views: 1144

i used old 3D glasses (red / blue filter). i remember and found them in drawer , then closed one eye and saw it xD
10 seconds to get answer :) but still nice
by PainKeeper
Fri Jul 22, 2011 10:35 am
Forum: Challenges Solved
Topic: Random Problem
Replies: 11
Views: 951

i did it with this little code sniped. there some smaller / better way to do? im not some java pro. [code] class Box { int zahl; Box(int randomNumber) { zahl = randomNumber; } int value() { int a[] = new int[10]; for (int i = 0; i < a.length; i++) a[i] = i * zahl; int index = Math.abs(zahl) % a.leng...