tahsin_protik's blog

By tahsin_protik, history, 4 years ago, In English

Hello, Codeforces community.

It is my pleasure to invite you all to the replay contest of Intra RUET Junior Contest (Round 1), which took place two days back with the beginner contestants of Rajshahi University of Engineering & Technology. The contest will follow the format of regular ICPC contests.

The contest will be suitable for beginners (ie. Codeforces Div3 contestants) but we invite you all to participate for fun. :D

Contest Link: https://toph.co/c/intra-ruet-junior-contest-round-1-r

Start time: 19:15(+6GMT) 10/08/2020

Duration: 3 hours

Number of Problems: 7

The contest platform is toph.co, you can register for the contest here.

The problems of the contest were reviewed, authored and tested by Shefin_, I_love_ProParThinkNot, Hasnaine_, tanus_era, wan-_-s, Abdur_Rahman_Shajib, Hasinur_, tahsin_protik, Moshiur_, tux, JOYTUN_17, Complexity_Cutter, Salam_35, Emama.emu

We look forward to your participation and hope that you enjoy the problem set, best of luck in the contest.

UPD: The editorial for the problems are click here

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

»
4 years ago, # |
  Vote: I like it +5 Vote: I do not like it

Remainder: less than an hour remaining to start the contest.

»
4 years ago, # |
  Vote: I like it 0 Vote: I do not like it

How to solve B? I used two dp for prefix and suffix, but I don't know what's wrong :(

  • »
    »
    4 years ago, # ^ |
    Rev. 3   Vote: I like it 0 Vote: I do not like it

    Its can be solved by using dp for suffix and prefix. For a certain position i if (i>0) then if there is a way to make sum equal to X using first i-1 pairs then check there is any possible way using rest pairs except i-th thus sum is equal to (M-X).

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +5 Vote: I do not like it

    You can check out the editorials. We've uploaded it just now.

  • »
    »
    4 years ago, # ^ |
      Vote: I like it +8 Vote: I do not like it

    I also used suffix and prefix dp .

    Code