Блог пользователя tahsin_protik

Автор tahsin_protik, история, 4 года назад, По-английски

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

  • Проголосовать: нравится
  • +27
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

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

»
4 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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

  • »
    »
    4 года назад, # ^ |
    Rev. 3   Проголосовать: нравится 0 Проголосовать: не нравится

    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 года назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

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

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +8 Проголосовать: не нравится

    I also used suffix and prefix dp .

    Code