ZCO 2015 Discussion

I am sorry, I didn’t get the unnecessary points part, which points do you consider as unnecessary points? Yeah, I tried sorting once by x coordinate and once by y coordinate but I found difficulty in keeping track of the maximum area. It was frighteningly lengthy. I didn’t get a proper algorithm for Covering either. I tried maintaining a border1 and border2 to keep track of the ranges which should fit in the other sets but never mind, it was wrong and useless (as the sets can overlap in any way). Basically, I am getting a big ZERO.

So did you get an AC for Rectangles? What’s your score?

The RECTANGLE problem is much easier than COVERING.

I gave the morning session. Yeah, there are no unnecessary points I Misread the question. Put my solution as an answer @sandy999

Yes, everyone was experiencing the server problem. Also a morning session was a much easier I would say.

Do you have any ideas about COVERING?

What is the “assumed I have” area ?

Note that VARIATION can be done without binary search as well:

It’s also easier to implement this if you didn’t know about upper_bound.

@sampritipanda None Whatsoever!

Have you solved covering?

Please share the solution if you have solved Covering. @a1b413

2 Likes

Can you share your solution for covering?

They will be different. Probably 200 for us and 40 for you.

200 is too much I think.

Nah! Our questions were really easy. But, I surely think your and my cutoffs will be different.

Haha I took the morning session actually! Got 100/200.

Was your solution for covering bruteforce?

More or less. What I did was, start with any range, not covered, find the number in this range which covers max no. of other ranges, mark them as selected, repeat until all are selected. Maybe it’s not a correct solution, but this is all I could think of.

I don’t think 40 is a fair cut off. I solved both the questions of the morning session today with a stopwatch on, and it took me one hour and twenty minutes for both of them, with no extra help whatsoever. Which is when DP isn’t really my bailiwick.

IMHO, getting a perfect score on the morning session was significantly easier than getting a non-zero one in the afternoon session.

1 Like

Don’t you think that this would give TLE?

I did the same thing but I made a really strong test case and it didn’t pass it.