Titan493ASST's blog

By Titan493ASST, history, 9 months ago, In English

Hello, what's up ?!

I prepared another problem, but this time, some part of the problem is similar to one on codechef, which I of course came to know later. Anyways : try this -> https://mirror.codeforces.com/contestInvitation/bbf072a86e816262a0c0bb3ed00f595c168d0276.

I hope you will find the problem new! XD

Edit: Solution code : https://ideone.com/hhbkjX

Thank you!

  • Vote: I like it
  • +8
  • Vote: I do not like it

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Neat, had to think about this for a good bit. Curious as to what the "official" solution/proof is since mine was rather Guessforces lmao

»
9 months ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Bruh the test 15 is killing me :(

  • »
    »
    9 months ago, hide # ^ |
    Rev. 2  
    Vote: I like it 0 Vote: I do not like it

    Hint: Where should 1 occur in original array A according to the pref and suf arrays ?!

    Hint 2

    Thank you for making submission(s)!