Re: [gcj] 2020 1B P1 Expogo: solution using bitwise operations. (fails with WA though). Am I wrong with the approach or is just a bug in code?

2020-04-21 Thread mattfenlon2
Hi Alexander! I attempted a similar approach without success. How does your program handle cases such as 1 4 and -1 4? Both have valid solutions: SNE and NSE. Best, Matt > On Apr 21, 2020, at 1:22 PM, Alexander Iskhakov > wrote: > >  > Submission returns "WA", and it doesn't provide the

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

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] Debugging Interactive Problems

2020-04-10 Thread mattfenlon2
The interactive runner links stdin and stdout but does not touch stderr. I had success printing to stderr throughout your program to print useful, readable information. > On Apr 10, 2020, at 6:55 PM, Lev Raizman wrote: > >  > Hello all, > > I'm looking for a method for debugging my

Re: [gcj] Re: Vestigium C++ code giving Sample Failed:WA error

2020-04-09 Thread mattfenlon2
Hi Saimohan! Will you please post your code here so that I can run it locally? Your output looks fine from what I can see. > On Apr 9, 2020, at 11:45 AM, Saimohan Kuncham wrote: > >  > This is how I am printing the final output : > > cout << "Case #" << caseno << ":" << " " << tracesum << "

Re: [gcj] Re: Parenting Problem Returns more creative solution?

2020-04-09 Thread mattfenlon2
Hi Igor! Before I go in and debut your code, will you please explain the logic behind your solution? > On Apr 9, 2020, at 11:45 AM, Igor Cha wrote: > >  > can anyone help out? D: > >> On Tuesday, April 7, 2020 at 8:51:58 AM UTC-7, Igor Cha wrote: >> Hi, I initially approached this using