Re: [gcj] Saving the universe again - Why my code failed in the test set 2?

2020-03-22 Thread porker2008
Can you share your code? -- 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 view this discussion on the web visit h

[gcj] Re: KickStart 2020 simple problem. Code runs locally, but gets WA on Google's machine

2020-03-22 Thread porker2008
*for i in range(0, len(arr) - 1):* should be *for i in range(0, len(arr)):* -- 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...@googlegr

[gcj] Re: How to read test file? - Google Kickstart 2020

2020-03-22 Thread porker2008
Please check out FAQ: https://codingcompetitions.withgoogle.com/kickstart/faq In *Coding *section, you can find a few samples regarding how to read input and write output -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from

[gcj] Can anyone tell what is the error in the below Foregone Solution Code?

2020-03-22 Thread Mgalois
The "print(f..." is one of the problems. Check that this new utility was added after python 3.5.3 that is the one used in the contest, so you should change that printing way. -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe fr

[gcj] KickStart 2020 simple problem. Code runs locally, but gets WA on Google's machine

2020-03-22 Thread Mgalois
Why you add the -1 in the range? When you write 'range(0,n)' the iteration is from 0 to n-1, so your iteration doesn't go up to the last element of the list of houses. I haven't run your code but I notice that detail. -- You received this message because you are subscribed to the Google Group

[gcj] KickStart 2020 simple problem. Code runs locally, but gets WA on Google's machine

2020-03-22 Thread Anna Bukreeva
Hi! I did the Allocation problem off of Kickstart's competition 2020. My code run locally, but when I submitted it, it got the Wrong Answer error. Can you guys please enlighten me what I could be doing wrong? I can't find any errors in the code. I know this is a CodeJam group, but I couldn't fin

[gcj] How to read test file? - Google Kickstart 2020

2020-03-22 Thread Vibhu Vaibhav
Can't understand how the my program would take the input given by their Judging System. It's not like a text file which can be imported and read. What to do? -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from this group and

Re: [gcj] Saving the universe again - Why my code failed in the test set 2?

2020-03-22 Thread Sourakanti Mandal
Hello...Now I am swapping CS pairs from right to left, so that 6 CSSCS ouputs 1 now. But though it Fails in the 2nd Test Set. What's the problem ? I am really stuck at this ! :( -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe

[gcj] Why my solution to Cryptopangrams get RE ?

2020-03-22 Thread mostafa albana
import java.io.BufferedReader; import java.io.InputStreamReader; import java.math.BigInteger; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Scanner; public class Solution { private static final char[] ALPHAPET = "abcdefg

[gcj] Can anyone tell what is the error in the below Foregone Solution Code?

2020-03-22 Thread akshit bhatia
Hello, I have written the Python code below which is running perfectly in the IDE. But it gives Runtime Error on editor of Google Code Jam. Can anyone please tell me what is the error I am committing? import math def find4(objective): rem=objective i =0 x=0 y=0 while(rem>0):