[gcj] round 2: Wormhole in one, dont know what went wrong...

2020-05-20 Thread amit dinnar
So, I posted this code (a bit messy because its after a few fixes) to round 2, and I got WA. according to the analysis, my idea is right, but I still got WA. Can anyone spot why, or should I try and ask for a second look from the codejam team? I tried many local tests and I couldn't find anythi

[gcj] Failed Wormhole in one and not sure why

2020-05-20 Thread amit dinnar
Posted here is the code I've written for wormhole in one. It worked on every test I ran on it, and it follows the logic of the analysis, and it still doesnt work. Can anyone spot the mistake? I would love to know what it was, so I could fix it the next time, because I can't seem to find any mist

[gcj] My Code for Google Kickstart 2020 Round C Problem 2 Stable Wall

2020-05-20 Thread Shah Jahan Ishaq
Please explain what is wrong with this code for Google Kickstart 2020 Round C Problem 2 Stable Wall def dfs(visited, graph, node): if node not in visited: print(node, end = "") visited.add(node) for neighbour in graph[node]: dfs(visited, graph, neighbour) for case in range(1, int(input()) +1): v

[gcj] Kickstart Round C Problem 2 (Stable Wall)

2020-05-20 Thread Shah Jahan Ishaq
Can anyone please tell me what is wrong in this Python3 code for Kickstart Round C Problem 2 (Stable Wall) Link: https://codingcompetitions.withgoogle.com/kickstart/round/0019ff43/003379bb def dfs(visited, graph, node): if node not in visited: print(node, end = "") visited.add(

[gcj] [Kick Start B 2020][Java] Robot Path Decoding

2020-05-20 Thread Quentin
Hello all, I try to solve this problem but I got WA for the second test case. As there is no new conditions between 1 and 2 I don't know why it is happening. Here is my code : import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Solution { static Solution

[gcj] Re: Kickstart Round C Problem 2 (Stable Wall)

2020-05-20 Thread porker2008
You can try the following test case *1* *4 2* *AA* *AB* *AC* *AA* -- 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. T

[gcj] Re: round 2: Wormhole in one, dont know what went wrong...

2020-05-20 Thread porker2008
I cannot figure out what test case your code will fail, but I was able to fix your problem The problem is with floating point arithmetic. Because this problem requires very precise calculation, you should avoid using floating point at all Please check out the following code that would pass both

[gcj] Re: [Kick Start B 2020][Java] Robot Path Decoding

2020-05-20 Thread porker2008
You need to take care of overflow problem. See the code below for references. *import java.util.ArrayList;* *import java.util.List;* *import java.util.Scanner;* *public class Solution {* *public static void main(String[] args) {* *Scanner scann = new Scanner(System.in); // Create a