January Long Challenge 2020

finally i got partially correct answer after 30 WAs.i was missing a constraint, somebody have said right if you will read question again and again you will find the answer in it.

1 Like

True!! I have 10 WAs. Just need more 20 WAs :sweat_smile::sweat_smile:

1 Like

just focus on question (try to understand it) and most important on constraints you will get AC .

@admin can you add explanations to the examples. Its always helpful for the readers, instead of just giving the output for the example input testcases.

If its possible can someone tell me the explanation for the last testcase output.
From my understanding: The original sequence is (3,2,5), (5,2,3) and which are the other two.
Thank you!

if the explaination is not given, then it is not to be given

3 Likes

Problem setter @rishup_nitdgp has replied to the second part of your question in the comments section.

" a i values can be negative."

If you think now, you’ll be able to find the other pair yourself :slight_smile:

1 Like

If you do that in a short contest with penalty. You’ll be down the leaderboard in no time. So better not make a habit of it

1 Like

i always keep in mind when i participate in short contests .

Thanks buddy i got the other two (5,-2,7) and (7,-2,5). Writing it here in case anyone is stuck like me :stuck_out_tongue:

2 Likes

in the problem ISBIAS

  • Ap<Ap+1…<Aq
  • if p>L, then Ap<Ap−1
  • if q<R, then Aq>Aq+1
    how this three conditions will hold at the same time??

yep that is confusing .

and most amzing thing is …u r also in that grp :joy::joy:

1 Like

i just asked the same in comment of the question and the problem setter has answer it too. check it out, now its more clear.

thank u

1 Like

Did you complain to the admins of those groups ?
I am sure they’ll take some actions.

3 Likes

Not only me, better coders than you and me are also in that group and which doesn’t mean all are involved in this discussion. Grow Up!

1 Like

oh really , then i think if u r in that grp , u have to say in that grp plz don’t cheat :slight_smile: and be honest u r also searching/asking test case hint for another question.

4 Likes

bro that doesn’t matter … we have to foucs on our own problems,not that someone is cheating or not. :slight_smile:
bcz koi fark nhi padega cheating krne wale krenge … ham rok nhi skte and also thode dino baad koi na koi youtube pe dalega solution so ignore :)…

1 Like

There’s nothing wrong with stopping someone from cheating.

2 Likes

yes i agree … lets close this discussion as this is not relevent thread @vijju123 sry for that.

1 Like