I_love_Hoang_Yen's blog

By I_love_Hoang_Yen, 8 years ago, In English

UPD: Author's solutions are published here.

Hi all,

This Sunday (Nov 05, 2017), there will be ACM ICPC Vietnam National Round 2017. This is the qualification round for Vietnamese teams participating in ACM ICPC Vietnam Regional.

There will be online mirror on Kattis.

  • Time: 8am Vietnamese time
  • Normal ACM ICPC rules will be used.
  • Standings will be frozen in last hour.

I hope that many of you will enjoy the problemset, especially the teams that will come to our Vietnamese regional. Good luck & have fun :).

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

| Write comment?
»
8 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

For problem L, I only read the description part of the problem. And, I can't believe there are so many ACs on the scoreboard of the online mirror.

After contest, I finally found out the most important key points in the Constraints section...

  • For all nodes which has property, .
  • For every i from 1 to M, 1 ≤ ui < vi ≤ N.
  • »
    »
    8 years ago, hide # ^ |
     
    Vote: I like it +3 Vote: I do not like it

    Yeah, That is a tricky one. In the official contest, noone realize that and there is no serious attemp to that problem

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

    Can you explain the solution?

    • »
      »
      »
      8 years ago, hide # ^ |
      Rev. 2  
      Vote: I like it +10 Vote: I do not like it

      Notice that the given graph is DAG, and there's no point in buying house, so this become a trivial DP on DAG problem (dp[u] is the largest amount of money one can get if they start from vertex u).

      Seriously, noticing the unusual constraints is much harder than solving the problem itself (and no one in the official contest was able to do this, we all thought that this problem is an insanely hard game problem and didn't even bother finish reading the statement).

  • »
    »
    8 years ago, hide # ^ |
    Rev. 3  
    Vote: I like it +1 Vote: I do not like it

    Actually, there is one more important tricky constraint that solves the problem.

    106 ≤ K

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

    While admitting that the author purposely tried to hide that key information, I am still curious why you did completely ignore the constraints section before trying to solve the problem. Being aware of how large the graph is was helpful in thinking of solution, wasn't it?

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

      Yes, I did read the constraints til the 4th one(1 ≤ sa ≤ N, 1 ≤ sb ≤ N). And, I thought rest of the parts may be something like no self-loop, no multiple edges, etc. as usual graph-related problem.

      It looks like a normal graph size(N, M ≤ 105) and 106 ≤ K seems to let the game go into some stable state. Thus, I thought I totally understood the problem and decided to skip it first.

      If the graph is some special graph(tree, DAG, functional graph, etc), I thought it would be better to mention it in the description.

      Anyway, the contest is still very nice!

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

      I thought that I can't solve this problem no matter what is the constraint of N and M so I just skipped this problem without even reading the constraint.

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

        What if N, M are at most 10 and K is at most 100? It becomes a trivial dp problem, doesn't it?

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

          Probably I was being too haunted by the game on graph problem to a point that I skip all problem involved those. Perhaps I should practice this kind of problem more.

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

            You should practice reading statement more. "didn't even bother finish reading the statement" is not acceptable in any ACM ICPC contest. You have 15 people hours. Read everything carefully.

            • »
              »
              »
              »
              »
              »
              »
              8 years ago, hide # ^ |
              Rev. 2  
              Vote: I like it +3 Vote: I do not like it

              I guess this is a lesson for me and also, everyone in Vietnam who participated this round. And I learned it the hard way.

»
8 years ago, hide # |
 
Vote: I like it -8 Vote: I do not like it

I want to die.

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

Any hint for problem A? Or even better, will there be an editorial?

For problem G, I would not expect that the graph can contain many loops and many roads between 2 vertexes :'(

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

    There will be editorial in Vietnamese. I'm writing it but keep getting interrupted by work, so it will take some time to finish.

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

    For problem G, I also didn't know the fact for an hour. After that, I solved with parametric search for L whether there is a cycle or not.

    For problem A, we can use segment tree — lazy propagation with some coefficients of arithmetic sequence for each degree in polynomials.

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

Did I understand problem H right? I thought that statement means finding the number of sequence {b_n} that satisfies

0 <= b_i <= a_i for all 1 <= i <= n and there are at least two k satisfies b_k = a_k (1 <= k <= n).

I submitted code and I expected the result should be TLE, but it was WA.

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

How to solve problem C (Cumulative Sum)?
It has 0 accepted submissions.

»
8 years ago, hide # |
Rev. 2  
Vote: I like it 0 Vote: I do not like it

Sorry, Mrs. Hoang Yen!!! Regarding solution of problem A, would you mind elaborating on the "update" method? Why did you take derivatives of the function? I am completely confused about that.