Search found 12 matches

by ftfish
Fri Oct 26, 2012 7:11 pm
Forum: Challenges Solved
Topic: Shattered and Shuffled
Replies: 13
Views: 1076

solved it with straight forward algorithm with 300 LoC in java.
I've implemented backtracking functionality, but my first choice was always correct so that no backtracking was done :)
running time with GUI was several seconds.
by ftfish
Wed Apr 18, 2012 10:06 pm
Forum: Challenges Solved
Topic: Spiral Bits
Replies: 31
Views: 2589

I found the path using dijkstra's algorithm optimized with binary heaps, which finds the shortest path between two points given a graph. The graph was not hard to construct and the most important thing was to set the cost of black points to infinity.
by ftfish
Tue Apr 17, 2012 7:50 pm
Forum: Challenges Solved
Topic: Black Box
Replies: 13
Views: 993

I guess not, therefore the reverse calculation is only about twice as fast as the normal brute force approach. Well, what you have to solve is the linear congruence equation: x*22233442 == 186968300 (mod 4294967296). This can be done with knowledge of elementary number theory (extended euclidean al...
by ftfish
Thu Sep 10, 2009 12:26 pm
Forum: Challenges
Topic: Tic Tac Blah
Replies: 31
Views: 45522

to the confused ones:
when someone wins, all the succeeding moves should be ignored.
by ftfish
Thu Sep 10, 2009 11:19 am
Forum: Challenges
Topic: I need some help to solve 'One Minute Man'
Replies: 5
Views: 11143

xotihcan wrote:Obiously it can be made at any hour... But, i dont know how to tell the script (chal.php) the time i want...
your time means nothing to the server.
by ftfish
Thu Sep 10, 2009 6:14 am
Forum: Challenges
Topic: Floating
Replies: 17
Views: 24742

PeterS wrote:Ok, I finally got it. Try rounding to the sixth decimal digit.
This is odd since the wikipedia article says, the precision is about 7.225 decimal digits.
you're right, it can hold 7 decimal digits.
but have you forgot the one digit to the left of the point?
by ftfish
Tue Sep 08, 2009 5:23 pm
Forum: Challenges
Topic: Once upon a time
Replies: 24
Views: 36178

sabretooth wrote:
ftfish wrote:i tried a time machine, but all i could get is the list of top10(or 11?), i've no further idea about how i can get the 15th hacker.... any hints please? thanks

did it say the 15th hacker? read it again ;)
ehhh.. my foolish eyes... thanks
by ftfish
Mon Sep 07, 2009 4:51 pm
Forum: Challenges Solved
Topic: Smell as Sweet
Replies: 15
Views: 1227

i also did it by searching for png headers.
i know i can open the file with wireshark, but i wonder how i can use wireshark to get the answer.
could you please give me a instruction? thanks!
by ftfish
Mon Sep 07, 2009 11:22 am
Forum: Challenges Solved
Topic: Broken Image
Replies: 15
Views: 1405

my first thought was to perform a brute force substitution, but the size of the image is too large. so i had to checkout wiki for specifications of png format. after knowing a bit of the structure of png, i tried to trace the Python Imaging Lib reading that png file. when an error comes, the lib is ...
by ftfish
Mon Sep 07, 2009 4:45 am
Forum: Challenges
Topic: Once upon a time
Replies: 24
Views: 36178

i tried a time machine, but all i could get is the list of top10(or 11?), i've no further idea about how i can get the 15th hacker.... any hints please? thanks
by ftfish
Fri Sep 04, 2009 2:58 am
Forum: Challenges
Topic: Didactic XOR Cipher 3
Replies: 35
Views: 61283

sorry for being spoiler :(
by ftfish
Thu Sep 03, 2009 8:30 pm
Forum: Challenges Solved
Topic: Broken Keys
Replies: 15
Views: 1438

you had a good solution, but yet another

I used the fact: when a<b, a/b equals 0.
max(a,b)=(a/b *a + b/a *b)/(a/b + b/a)

here's my code:

Code: Select all

0<0<1</*1<1<0</*+0<1</1<0</+/p