You say that we should fix L and R, but in the example we change L. Why isn’t that a contradiction?
Also, what implies that L < R?
And also, can’t I make an example with a result with infinities? (if K >= N - 1)?
You say that we should fix L and R, but in the example we change L. Why isn’t that a contradiction?
Also, what implies that L < R?
And also, can’t I make an example with a result with infinities? (if K >= N - 1)?
Well I dont think that writing tough test cases is a big problem. When you sit in a group of 10 people, you try to read the problem and try to think that what are all the different ways in which the problem can be misunderstood and give an appropriate counter-example.
Then, even if some ‘wrong’ solutions getting AC are reported, then you should not hesitate from adding tougher test cases, as no one would like a wrong solution be considered as accepted.
In the past few contests I have observed this weak tests problem a lot. I think we would get nowhere if we just solve the problem the way we like and you give AC and make us feel happy. Further it is a ten day long contest and no one should mind the addition of tough test cases as you are still left with considerable time to retry (compare 2 or 5 hour contests).
Also it should be a duty of testers to frequently go through the accepted solutions and try to challenge/hack them and add those cases for all solutions (and you may call the system as Dynamic Solution Testing System) and rejudge all at the end.
At the end of the day, correct solutions will pass all the test cases, no matter how they (solutions as well as cases) are generated.
Great…so u want 9-10k solutions(maybe more) to be read and challenged by a few testers…now that is a practical solution…:\
which problem has 9-10k accepted solutions??
Moreover only some random solutions need to be seen.
Further if you see the example above by @dcod, you should realise that the test cases were useless! This was a trivial thing that deserved a few test cases. I wont accept the point that testers could not think of this.
What has happened here is unfortunate.
We, as admins, admit that there were mistakes in the problem that could and should have been avoided or corrected when brought to the fore. This is an undesirable situation. We have spoken to our problem setting panel and there is no disagreement on this any more. What has happened in the contest cannot be undone and we regret that. We have requested the problem setter and the tester to fix the test data by adding many more test cases and make the test cases stronger in the practice section.
However, we must understand and appreciate the effort and the pain it takes to make a problem and to test it, especially since the panel members have other academic/professional commitments as well.
We will also try and make sure that the communication from our end to the panel happens clearly and there is no ambiguity on this any more. This should not happen again. We apologise for this incident.
nisargshah95: This has been fixed. Regret the issue.
Yes, we agree that this should be fixed.
Can anyone tell me plzz, what will be the output of:-
4 2
1 2 5 6
If it is not:- -1 2 5 8 then why?