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

Автор Daniar, история, 7 лет назад, По-английски

Hello CodeForces :D

I would like to invite you all to participate on Damascus-CPC 2018 contest on GYM. The contest was originally held in Syria, Damascus for Damascus University on May, 8, 2018.

Problem Setters && Testers :

Daniar Jarrous Daniar , Maala Mhrez XR_Maala , Joud Zouzou RedNextCentury , Fudail Hasan fudail225

Hussain Karra Fallah Pepe.Chess , Farouk Hjabo fresher96 , Anas Kastatntin kastarino , Hussain Hussain sqr_hussain

Zain Alabedeen Ali Zain , Hasan Jaddouh kingofnumbers , Marsil Zakkour Marcil , Noman Jessri Noman.jessri and Mohammad Asaad .

Contest Details:

  • Time : May, 26, 2018 (12:00 hrs) (GMT+3). You can check your local time here.

  • Contest Length : 5 hours.

  • Number of Problems: 12 problems.

The contest difficulty should be similar to a Div2 Codeforces round.

I recommend participating as a team because it is a standard ACM-ICPC contest.

Hope you like the problems. Any feedback after the contest is appreciated!

Good luck and have fun !!

UPD : here is the Editorial

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

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

have fun :D

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

number of problemseters equals number of problems, it is (1 * 1);

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

how to solve K?

  • »
    »
    7 лет назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится
    1. find a cycle with simple dfs. Since there are n edges, there exists exactly 1 cycle.
    2. For query u,v, find closest vertices in the cycle for each u,v.(say p,q respectively)
    3. If p and q are distinct, answer is dist(p,u)+dist(q,v)+(min_dist(p,q) in the cycle)
    4. If p and q are same, calculate distance with lca. I missed this part and took much time :(
»
7 лет назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

How to solve C? I am checking if A[i] == B[n-i-1] && A[n-i-1] == B[i], then steps are odd, else if A[i] == B[i] && A[n-i-1] == B[n-i-1] then steps are even. Incrementing steps accordingly. This does not seem to work. Thanks

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

Auto comment: topic has been updated by Daniar (previous revision, new revision, compare).

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

Can I view the test data? I wish to see why my B is incorrect :(

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

It was not interesting to solve any of the problems. I mean in official contest I would try to solve but here I have no intentions of upsolving any of the remaining problems. I hope damascus cpc will be more interesting in the future.

  • »
    »
    6 лет назад, # ^ |
      Проголосовать: нравится -13 Проголосовать: не нравится

    Maybe because you only solved the easy ones? :P

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

      Dude, G and I are idealess. thank you for your efforts preparing and all. but it is just not interesting. I think a negative opinion should be accepted.

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

        Ofcourse it is accepted, but your first comment didn't contain any helpful feedback on what needs to be improved. Anyways I'm sorry you didn't like the problems.

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

    Thank you for your opinion and we respect it, but I don't really agree with you.

    This problemset is prepared for a local university competition (most of the contestants are beginners i.e. green or even grey on codeforces ) and it's difficulty is similar to a Div-2 contest.

    If you managed to solve most of the problems easily without thinking a lot or making any effort that's because you are a Div-1 ranked contestant with a very well knowledge of the basics, but that doesn't make the problems "idealess" .

    I think problems D , E and H are interesting and very good for a 3 stars rated gym contest but you probably didn't read or give enough time to think about them.

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

I have a hack data for problem G input: 1 2 5 100 10 20 output: 1 somebody's code output 2 but Accepted here is a wrong code: https://codeforces.me/gym/101808/submission/58792147

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

I tried cloning this contest to a mashup today, and in the mashup, all submissions to problem F get "Judgment failed" even though it works perfectly in the original gym contest. Maybe it's worth looking into, MikeMirzayanov?