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

[gcj] Re: ESAb ATAd problem was working in local.

2020-04-09 Thread Aditya Gupta
My guess is that I did something wrong in the Interaction part. The logic is as per the analysis. Any help is very much appreciated. On Tuesday, April 7, 2020 at 9:25:21 PM UTC+5:30, Aditya Gupta wrote: > > Following is my solution to it. I tested it extensively and it was working > on local.

Re: [gcj] Re: Qualification round problem - Nested depth

2020-04-09 Thread Avinash Bhardwaj
Hi Matt, Indeed it's helpful. It just boggled my mind. I couldn't think of any tricky testcase. Thanks for taking the time and helping me out. Regards, Avinash On Thu, Apr 9, 2020, 04:55 Matt Fenlon wrote: > The issue seems to be caused by the line > output+='\0' > on line 48. Since the code

[gcj] Re: Parenting Partnering Returns Question

2020-04-09 Thread MANASA
Hi Dhruva, Thanks for your input. The cHeap and jHeap are considering the values which were already assigned to C and J, hence their start time is already sorted. Since, the intervals are processed according to start time. Hence, the cHeap and jHeap are assigning the latest task itself, since

[gcj] Re: Parenting Partnering Returns Question

2020-04-09 Thread MANASA
Hi porker2008, Thanks for the help! I did not notice this at all. The code got submitted now. Regards, Manasa -- 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

[gcj] Re: Parenting Partnering Returns Submission error "WA" for code in JAVA

2020-04-09 Thread MANASA
Hi porker2008, Thanks for the help. This was precisely the issue with the 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

[gcj] Code Jam Round 1A is coming up soon

2020-04-09 Thread 'Samantha' via Google Code Jam
Hello, The time has come — Code Jam Round 1 begins in under 36 hours! Visit the schedule page to see rounds in your browser's local time zone and to add events to your calendar. * All posting on this group will be paused during

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

2020-04-09 Thread Saimohan Kuncham
This is how I am printing the final output : cout << "Case #" << caseno << ":" << " " << tracesum << " " << rowsrepeatnum << " " << colsrepeatnum << endl; What is the correct way to test on the local machine ? I am testing my program by entering the keyboard input. In other words I am

[gcj] Pylons

2020-04-09 Thread mostafa albana
Why my java solution have a wrong answers ? import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Scanner; public class Solution { public static void main(String[] args) { try

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

2020-04-09 Thread Igor Cha
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 the same way as in the analysis of > the problem, but I thought I found a better solution. However, it kept > giving me WA and I am trying to figure out why. It

[gcj] Re: Parenting Partnering Returns Question

2020-04-09 Thread porker2008
Hi MANASA, > > I replied to you in another thread, so I just put a summary here. iterator from PriorityQueue does not return elements in a particular order , so your code does not actually work as your intended

[gcj] Re: Parenting Partnering Returns Submission error "WA" for code in JAVA

2020-04-09 Thread porker2008
*for (Interval itm : oFinal) {* *System.out.print(itm.person);* *}* The iterator from PriorityQueue does not return the elements in a particular order , that's why your solution does not work. Instead you

[gcj] kick start 2020 round A: allocation problem Sample Failed: RE

2020-04-09 Thread Herve Ngamboum
hello, i executed my code on my local server and it works without problem but when i submit i get the RE error What's the problem? def solution(): N,B=map(int,input().split()) A=map(int,input().split()) A.sort() cout=0 for i in A: if i<=B: B-=i

[gcj] Re: RE in solution for parenting partnering returns

2020-04-09 Thread Pronoy Mandal
This is the final code which clears all test cases. T = int(input()) for i in range(1,T+1): N=int(input()) jobs=[] for x in range(N): jobs.append(tuple(map(int, input().split(' ')))+(x,)) L = [0]*N cj=[0,0] m = sorted(jobs) imp = False for j in m:

[gcj] Re: Parenting Partnering Returns Question

2020-04-09 Thread Dhruva Sagar
Hi Manasa, I think the issue with your code is with your `cHeap` and `jHeap` and how they're used. Since `cHeap` & `jHeap` are sorted by end time, when you do a `peak()` you get the last activity with the largest end-time so far. The tasks you're processing from `oPQ` are however sorted by