[gcj] Arrrggggghhhh
Can someone tell me what is wrong??? Input: 100 20 -2 4 3 -2 0 12 0 0 14 4 0 18 2 0 10 -4 0 5 0 2 16 0 0 18 0 4 11 0 0 17 0 2 15 4 0 6 -1 1 6 -2 2 10 3 1 5 0 2 1 0 682 10 2 2 5 9996 0 12 2 0 14 -1 3 4 1637 3881 5 0 4 10 3 1 5 -2 0 10 2 2 6 4 0 16 1747 2953 16 -6 0 14 1379 9755 1 0 2 16 -4 0 14 0 0 13 -3 1 11 -4 0 11 0 2 19 -3 3 1 2 0 12 1498 654 17 -6 0 8 -3 1 7 4 0 19 -3 3 5 -4 0 14 -7518 0 15 2 0 20 3 3 1 1 1 3 2 0 19 -1 3 11 -1 3 5 -1 1 15 -6 0 1 0 0 3 0 0 6 3 1 1 4 2 10 2 0 6 -4 0 13 4807 7785 17 -2 2 18 2 0 3 2 0 20 1 3 20 8552 6720 1 0 2 17 2952 0 19 0 2 13 0 0 5 0 4 20 1 3 11 0 0 16 2 2 3 2 0 3 2 0 9 3550 3712 4 1 1 11 -1 3 18 -5 1 8 1 3 7 0 6592 4 -1574 0 2 1290 8780 11 2 2 1 0 0 1 -1 1 15 196 0 20 1559 2717 6 0 2 20 4 0 9 0 0 4 2 0 18 6 0 11 1 3 6 7311 7835 5 4 0 2 2 0 16 2 2 1 0 2 5 0 2 My output: Case #1: 0.03125 Case #2: 0.75 Case #3: 1.0 Case #4: 1.0 Case #5: 1.0 Case #6: 0.9375 Case #7: 0.0 Case #8: 1.0 Case #9: 1.0 Case #10: 1.0 Case #11: 1.0 Case #12: 1.0 Case #13: 1.0 Case #14: 0.0 Case #15: 0.625 Case #16: 0.0 Case #17: 0.0 Case #18: 0.3125 Case #19: 0.0 Case #20: 1.0 Case #21: 1.0 Case #22: 0.0 Case #23: 0.0 Case #24: 0.625 Case #25: 1.0 Case #26: 0.3125 Case #27: 0.0 Case #28: 0.0 Case #29: 0.5 Case #30: 0.0 Case #31: 0.0 Case #32: 1.0 Case #33: 1.0 Case #34: 1.0 Case #35: 1.0 Case #36: 1.0 Case #37: 0.0625 Case #38: 0.0 Case #39: 0.0 Case #40: 0.75 Case #41: 0.25 Case #42: 0.5 Case #43: 0.0625 Case #44: 0.0 Case #45: 0.0 Case #46: 1.0 Case #47: 0.1875 Case #48: 0.0 Case #49: 0.75 Case #50: 1.0 Case #51: 0.1875 Case #52: 1.0 Case #53: 0.0 Case #54: 1.0 Case #55: 1.0 Case #56: 0.0 Case #57: 0.0 Case #58: 1.0 Case #59: 0.0 Case #60: 0.0 Case #61: 1.0 Case #62: 1.0 Case #63: 0.75 Case #64: 1.0 Case #65: 0.0 Case #66: 0.0 Case #67: 0.0 Case #68: 1.0 Case #69: 1.0 Case #70: 0.0 Case #71: 1.0 Case #72: 1.0 Case #73: 1.0 Case #74: 0.75 Case #75: 0.75 Case #76: 0.0 Case #77: 0.5 Case #78: 0.1875 Case #79: 0.5 Case #80: 0.0 Case #81: 0.0 Case #82: 0.0 Case #83: 0.0 Case #84: 0.5 Case #85: 1.0 Case #86: 0.0 Case #87: 0.0 Case #88: 0.0 Case #89: 1.0 Case #90: 1.0 Case #91: 1.0 Case #92: 1.0 Case #93: 0.875 Case #94: 0.1875 Case #95: 0.0 Case #96: 0.0 Case #97: 0.5 Case #98: 1.0 Case #99: 0.0 Case #100: 0.0 -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/OWfB2JFEkwcJ. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
My Accepted Program shows that Case #15: 0.6875 Case #24: 0.6875 On 2013/5/5 2:33, zach polansky wrote: Can someone tell me what is wrong??? Input: 100 20 -2 4 3 -2 0 12 0 0 14 4 0 18 2 0 10 -4 0 5 0 2 16 0 0 18 0 4 11 0 0 17 0 2 15 4 0 6 -1 1 6 -2 2 10 3 1 5 0 2 1 0 682 10 2 2 5 9996 0 12 2 0 14 -1 3 4 1637 3881 5 0 4 10 3 1 5 -2 0 10 2 2 6 4 0 16 1747 2953 16 -6 0 14 1379 9755 1 0 2 16 -4 0 14 0 0 13 -3 1 11 -4 0 11 0 2 19 -3 3 1 2 0 12 1498 654 17 -6 0 8 -3 1 7 4 0 19 -3 3 5 -4 0 14 -7518 0 15 2 0 20 3 3 1 1 1 3 2 0 19 -1 3 11 -1 3 5 -1 1 15 -6 0 1 0 0 3 0 0 6 3 1 1 4 2 10 2 0 6 -4 0 13 4807 7785 17 -2 2 18 2 0 3 2 0 20 1 3 20 8552 6720 1 0 2 17 2952 0 19 0 2 13 0 0 5 0 4 20 1 3 11 0 0 16 2 2 3 2 0 3 2 0 9 3550 3712 4 1 1 11 -1 3 18 -5 1 8 1 3 7 0 6592 4 -1574 0 2 1290 8780 11 2 2 1 0 0 1 -1 1 15 196 0 20 1559 2717 6 0 2 20 4 0 9 0 0 4 2 0 18 6 0 11 1 3 6 7311 7835 5 4 0 2 2 0 16 2 2 1 0 2 5 0 2 My output: Case #1: 0.03125 Case #2: 0.75 Case #3: 1.0 Case #4: 1.0 Case #5: 1.0 Case #6: 0.9375 Case #7: 0.0 Case #8: 1.0 Case #9: 1.0 Case #10: 1.0 Case #11: 1.0 Case #12: 1.0 Case #13: 1.0 Case #14: 0.0 Case #15: 0.625 Case #16: 0.0 Case #17: 0.0 Case #18: 0.3125 Case #19: 0.0 Case #20: 1.0 Case #21: 1.0 Case #22: 0.0 Case #23: 0.0 Case #24: 0.625 Case #25: 1.0 Case #26: 0.3125 Case #27: 0.0 Case #28: 0.0 Case #29: 0.5 Case #30: 0.0 Case #31: 0.0 Case #32: 1.0 Case #33: 1.0 Case #34: 1.0 Case #35: 1.0 Case #36: 1.0 Case #37: 0.0625 Case #38: 0.0 Case #39: 0.0 Case #40: 0.75 Case #41: 0.25 Case #42: 0.5 Case #43: 0.0625 Case #44: 0.0 Case #45: 0.0 Case #46: 1.0 Case #47: 0.1875 Case #48: 0.0 Case #49: 0.75 Case #50: 1.0 Case #51: 0.1875 Case #52: 1.0 Case #53: 0.0 Case #54: 1.0 Case #55: 1.0 Case #56: 0.0 Case #57: 0.0 Case #58: 1.0 Case #59: 0.0 Case #60: 0.0 Case #61: 1.0 Case #62: 1.0 Case #63: 0.75 Case #64: 1.0 Case #65: 0.0 Case #66: 0.0 Case #67: 0.0 Case #68: 1.0 Case #69: 1.0 Case #70: 0.0 Case #71: 1.0 Case #72: 1.0 Case #73: 1.0 Case #74: 0.75 Case #75: 0.75 Case #76: 0.0 Case #77: 0.5 Case #78: 0.1875 Case #79: 0.5 Case #80: 0.0 Case #81: 0.0 Case #82: 0.0 Case #83: 0.0 Case #84: 0.5 Case #85: 1.0 Case #86: 0.0 Case #87: 0.0 Case #88: 0.0 Case #89: 1.0 Case #90: 1.0 Case #91: 1.0 Case #92: 1.0 Case #93: 0.875 Case #94: 0.1875 Case #95: 0.0 Case #96: 0.0 Case #97: 0.5 Case #98: 1.0 Case #99: 0.0 Case #100: 0.0 -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
N! 2 cases away from round 2! D: -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/eHs_edBj8ywJ. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
I already know why you have that wrong output. Did you figure it out by yourself? :) Parker On Sunday, May 5, 2013 4:26:21 AM UTC+8, zach polansky wrote: N! 2 cases away from round 2! D: -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/QEySwQpn4zQJ. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
Yup! I noticed that small limits were very small, and I computed all of the individual probabilities by hand that were not 1 or 0. I did (1+4+6)/32 = (12)/32 and couldn't find my mistake -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/aJitjwcdz7oJ. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
I think it should be (1+4+6)/16 = 11/16 = 0.6875 On Sunday, May 5, 2013 5:30:55 AM UTC+8, zach polansky wrote: Yup! I noticed that small limits were very small, and I computed all of the individual probabilities by hand that were not 1 or 0. I did (1+4+6)/32 = (12)/32 and couldn't find my mistake -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/INLiKUCXjecJ. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gcj] Arrrggggghhhh
yes, I got that now, thats what I did earlier -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving emails from it, send an email to google-code+unsubscr...@googlegroups.com. To post to this group, send email to google-code@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msg/google-code/-/mS-9ElLituoJ. For more options, visit https://groups.google.com/groups/opt_out.