[gcj] Good Luck second input

2013-04-28 Thread meir
I was expecting a contest analysis by now but didn't see one so I'll try this way. Though I didn't participate in round 1A I tried to solve the Good Luck problem but only get ~10% correct with the parameters of the second input and wanted to share my approach and ask for comments. First I find

[gcj] Good Luck second input

2013-04-28 Thread Nate Bauernfeind
A correct answer I read through was very similar and I tried rewriting it in a way that was more intuitive to me. I tried to build a probability of the choices by multiplying the probability of the chance you saw k for each k and the probability it was that combination of numbers (taking into