Re: [gcj] What's my mistake? [Qualification Round 2020: Parenting Partnering Returns]

2020-04-16 Thread mattfenlon2
You are correct in sorting the dates, but you must print the assignments in the same order in which the dates were entered, not in the sorted order. Also, your english looks good to me :) > On Apr 16, 2020, at 6:40 PM, Tornax wrote: > >  > Hello, I'm trying to solve the 3. task of the qualifi

Re: [gcj] What's my mistake? [Qualification Round 2020: Parenting Partnering Returns]

2020-04-16 Thread Joseph DeVincentis
The input time ranges for case 3 were: 99 150 1 100 100 301 2 5 150 250 JCCJC means to assign 1-100, 100-301, and 150-250 to C, but the last two of those overlap. While sorting the tasks by starting time in order to determine who can handle each one is a good strategy, you have to also retain th

[gcj] What's my mistake? [Qualification Round 2020: Parenting Partnering Returns]

2020-04-16 Thread Tornax
Hello, I'm trying to solve the 3. task of the qualification round 2020. I'm using Python3 to solve this problem. When I'm submiting my code it says "Sample Failed: WA". This is my code: number_of_cases = int(input()) for case_number in range(1, number_of_cases + 1): appointments = int(input(

[gcj] Complexity&Explanation - Round 1B 2018 Transmutation

2020-04-16 Thread Romain
Hello, The following code passes all the test cases for the exercice Transmutation . Can you confirm the complexity is O(M^2)? I did a lot of tests and I did not quite understand why I need to check if qu

Re: [gcj] I'm trying to submit an answer for the allocation question from the last session, and keep getting 'Test Set Skipped'. Is this because my runtime is too slow, or because I'm formatting my an

2020-04-16 Thread mattfenlon2
Hi Charlie! Usually, the only reason a test set is skipped is that a previous test set failed. Did you get a test set failed message on one of the test sets? Check out the Submitting section in the FAQ for a little more clarity: https://codingcompetitions.withgoogle.com/codejam/faq Best, Matt

Re: [gcj] I'm new to these code jams and wondering how we're supposed to use input.

2020-04-16 Thread Charlie Selden
Awesome thanks, I looked through the FAQ but apparently too quickly. On Wednesday, April 15, 2020 at 4:53:06 PM UTC-4, /dev/joe wrote: > > Charlie, you submit your program source code. You can paste it directly > into the code screen on the problem page, or upload a file. Select which > language

[gcj] I'm trying to submit an answer for the allocation question from the last session, and keep getting 'Test Set Skipped'. Is this because my runtime is too slow, or because I'm formatting my answer

2020-04-16 Thread Charlie Selden
I get the correct output when using the test input, which means it works on a small level at least, so I was thinking the former, however that problem already has the answer posted and I followed it so I'm not so sure. Any help would be much appreciated! Thanks. import java.util.Arrays; import j