Re: Request for quota increase

2014-04-13 Thread gao . jia . cheng
This is the project address. *https://code.google.com/p/cs2103jan2014-f12-5c/* -- You received this message because you are subscribed to the Google Groups Project Hosting on Google Code group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [gcj] Minesweeper problem

2014-04-13 Thread Dhruva Sagar
I get the following : * * c...* * . On Sun, Apr 13, 2014 at 11:07 AM, Mohamed Ghoneim ghooo.gh...@gmail.comwrote: What will you output for 5 5 12 ? -- Mohamed Sayed Ghoneim On Sun, Apr 13, 2014 at 7:32 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote: The problem does not

Re: [gcj] Re: Minesweeper problem

2014-04-13 Thread Dhruva Sagar
Can you explain why the right most cell not be revealed ? This is what I get as the weighted game : 235* 002* 0011 So if the first cell with 0 is clicked, I believe it should end up revealing all... On Sun, Apr 13, 2014 at 11:26 AM, Tsuyoshi Ito tsuyoshi.ito.2...@gmail.comwrote: On Sunday,

Re: [gcj] Re: Minesweeper problem

2014-04-13 Thread Dhruva Sagar
Ahh, I see how :/, so the spiral approach isn't correct then. On Sun, Apr 13, 2014 at 11:53 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote: Can you explain why the right most cell not be revealed ? This is what I get as the weighted game : 235* 002* 0011 So if the first cell with 0 is

Re: [gcj] Re: Minesweeper problem

2014-04-13 Thread Aaron Chan
Here's my approach. It may not be the most elegant, but it passed the test cases. First, handle 1*c, r*1, and only 1 free space separately. Then, recognize that you can always always push the free space to one corner. Suppose that the free spaces are in the top left, then row 12 must have the

Re: [gcj] Can I post about the Qualification Round Problems now on my blog?

2014-04-13 Thread Amit Thakur
Thank you! On Sun, Apr 13, 2014 at 12:26 PM, Igor Naverniouk abedn...@gmail.comwrote: Yes, feel free to discuss problems and solutions on your blog after the round is over. On Sat, Apr 12, 2014 at 11:12 PM, Amit Thakur he...@amitthakur.orgwrote: Qualification round is over. Can I write

[gcj] Re: How do we now if we qualified for Round 1 or not ?

2014-04-13 Thread 1.jatekos
2014. április 13., vasárnap 7:20:09 UTC+2 időpontban Amber Kulkarni a következőt írta: If you have at least 25 points, you qualified. -- 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

Re: [gcj] Minesweeper problem

2014-04-13 Thread Mohamed Ghoneim
This is wrong because of the last empty cell in the first column will never get filled as there is no 0 surrounding it. -- Mohamed Sayed Ghoneim On Sun, Apr 13, 2014 at 8:18 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote: I get the following : * * c...* * . On Sun, Apr

[gcj] Re: Can I post about the Qualification Round Problems now on my blog?

2014-04-13 Thread Prikshit Kondal
On Sunday, April 13, 2014 11:42:23 AM UTC+5:30, Amit Thakur wrote: Qualification round is over. Can I write about the problems on my blog? yes -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving

Re: [gcj] Deceitful War

2014-04-13 Thread Angel Java Lopez
Thanks! Alternatively, Noemi could play 0.186 at the very beginning. My code at https://github.com/ajlopez/TddRocks/tree/master/Gcj2014 https://github.com/ajlopez/TddRocks/tree/master/Gcj2014/DeceitfulWar The only minor correction: Noemi cannot say 0.999 every time. Maybe 0.9991, 0.9992 and so

Re: [gcj] Minesweeper problem

2014-04-13 Thread Angel Java Lopez
My solution (but still with rejection in small dataset): - In every solution, the empty cells could be moved to touch a side (that is, if the empty cells is an internal island, the same solution could be moved to have an empty cell on a side touching the exterior) - Find a rectangle r x c, so

Re: [gcj] Minesweeper problem

2014-04-13 Thread IdahoJacket
My approach was somewhat similar, except I tried to place the mines in a rectangle instead of the empty squares. First, I treated and Nx1 grid and any grid with 0,1,2, or 3 empty squares as special cases. This allowed me to know that I would always have a 2x2 rectangle empty in the corner. I

[gcj] Magic Trick problem mistake (?)

2014-04-13 Thread newbie007
Hi, If in the second arrangement, the cards from the first chosen row are not all in different rows, then he IS a Bad magician! I know that the magician may be luck and still be able to find the card depending on the volunteer choices, but it doesn't change the fact that he IS a Bad magician!

Re: [gcj] Minesweeper problem

2014-04-13 Thread Richard Braakman
My solution (but still with rejection in small dataset): - In every solution, the empty cells could be moved to touch a side (that is, if the empty cells is an internal island, the same solution could be moved to have an empty cell on a side touching the exterior) - Find a rectangle r x c,

Re: [gcj] Minesweeper problem

2014-04-13 Thread Angel Java Lopez
For 5 5 4 my algorithm/code gives Case #1: c . * * ...** On Sun, Apr 13, 2014 at 9:07 AM, Richard Braakman gta...@clueonic.netwrote: My solution (but still with rejection in small dataset): - In every solution, the empty cells could be moved to touch a side (that is,

Re: [gcj] Deceitful War

2014-04-13 Thread Leandro Coutinho
Naomi went to the dark side. Now she is a corrupted person... Em 13/04/2014 11:06, Luke Pebody l...@pebody.org escreveu: Ken is very trusting. Sent from my iPad On 13 Apr 2014, at 12:51, Richard Braakman gta...@clueonic.net wrote: To get 8, Naomi takes 0.300, 0.389, 0.557, 0.832, 0.899,

[gcj] Re: Code performance concerns

2014-04-13 Thread meir
On Monday, March 24, 2014 10:04:17 PM UTC+2, Shivang Gupta wrote: Hi, Are the solutions judged for performance as well, in terms of lines of code, or execution time, or memory footprint, etc.? Has anybody ever run into a problem where they had to be careful about this aspect, specially

Re: [gcj] Magic Trick problem mistake (?)

2014-04-13 Thread Leopoldo Taravilse
The problem statement is very clear on when he is a bad magician. From the problem statement: If there are multiple cards the volunteer could have chosen, y should be Bad magician! So it doesn't matter if in real life that would be a bad magician. In the problem it's only a bad magician only in

Re: [gcj] Minesweeper problem

2014-04-13 Thread Magnetar
On Sunday, April 13, 2014 3:07:48 AM UTC-7, IdahoJacket wrote: My approach was somewhat similar, except I tried to place the mines in a rectangle instead of the empty squares. IdahoJacket, thank you for the explanation. I've been reading through other people's code submission to

Re: [gcj] Can I post about the Qualification Round Problems now on my blog?

2014-04-13 Thread Magnetar
Amit, care to share your blog with us? ;) -- 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

Re: [gcj] Magic Trick problem mistake (?)

2014-04-13 Thread Xiongqi ZHANG
Sometimes you cannot interpret the problem using your own understanding of Bad magician The description is fairly clear. --- ​​ If there is a single card the volunteer could have chosen, y should be the number on the card. If there are multiple cards the volunteer could have chosen, y should be

[gcj] Re: Minesweeper problem

2014-04-13 Thread Leopoldo Salvo
HI, I could not get this one to pass either, i still don't understand why, it must be the way i fill the board (I ran the actual recursion algorigthm on both failures and successes and checked the number of cells left to be revealed and they were consistent with my results) If R or C == 1

[gcj] Re: Doubt regarding the submission process

2014-04-13 Thread Wilco Strydom
I'm not new to Code Jam, and flew through the first two questions but got caught on Minesweeper. I downloaded another contestants code after the contest and used my small input set to compare output and find the bug. There was none! All the 'Impossible' match and all other cases we both give

Re: [gcj] Deceitful War

2014-04-13 Thread Christian Wen
Actually according to the rules Naomi could always play .999 as long as Ken didn't have the .999 block. On Sunday, 13 April 2014 04:55:59 UTC-4, ajlopez wrote: Thanks! Alternatively, Noemi could play 0.186 at the very beginning. My code at

Re: [gcj] Re: Clarification regarding the round

2014-04-13 Thread Paul Smith
Note that it works exactly the same way in rounds 1A, 1B, and 1C, and in those rounds it does matter exactly where you come in the scoreboard. Paul Smith p...@pollyandpaul.co.uk On Sat, Apr 12, 2014 at 7:08 AM, Bhawik Jain bhawikonl...@gmail.com wrote: On Saturday, 12 April 2014 10:15:03

Re: [gcj] Deceitful War

2014-04-13 Thread Juan Lopes
I think even so she could play a 0. block On Sun, Apr 13, 2014 at 10:16 AM, Christian Wen christian@gmail.comwrote: Actually according to the rules Naomi could always play .999 as long as Ken didn't have the .999 block. On Sunday, 13 April 2014 04:55:59 UTC-4, ajlopez wrote:

[gcj] Re: How do we now if we qualified for Round 1 or not ?

2014-04-13 Thread LeppyR64
25 points and didn't do anything to get disqualified. -- 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

[gcj] Will a score 25 be useful later on?

2014-04-13 Thread sandeep kumar Mantrala
Hi, I got 25 points exactly and i see many others who got 90 aswell. So would they stand an advantage in the future rounds compared to me? -- You received this message because you are subscribed to the Google Groups Google Code Jam group. To unsubscribe from this group and stop receiving

Re: [gcj] Re: Doubt regarding the submission process

2014-04-13 Thread Amit Saharana
You can't check using diff as configurations produced might be different, but you can always check your board for inconsistency using a normal dfs. Also check that you put the required number of mines. See for example my solution to C-large which contains the checking code, you can use that to

Re: [gcj] Will a score 25 be useful later on?

2014-04-13 Thread Xiongqi ZHANG
No difference— Sent from Mailbox for iPhone On Mon, Apr 14, 2014 at 12:50 PM, sandeep kumar Mantrala sandeep@gmail.com wrote: Hi, I got 25 points exactly and i see many others who got 90 aswell. So would they stand an advantage in the future rounds compared to me? -- You received this