tourist's blog

By tourist, history, 7 years ago, In English

Hello!

Topcoder SRM 728 will be held tomorrow (January 25, 2018).

See what time it starts in your area.

I'm the writer. Everyone is welcome to participate!

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

| Write comment?
»
7 years ago, # |
  Vote: I like it +306 Vote: I do not like it

Tourist these days be like

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

    Image not working :/

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

      Tourist banned that... Someone still believes that there is no censorship on CF?...

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

        Looking only this as an example, I strongly believe that there is no censorship on CF.

»
7 years ago, # |
Rev. 2   Vote: I like it +33 Vote: I do not like it

Reminder: The contest starts in less than 4 hours. Registeration has started.
If you are first to compete and don't know how to use applet, I suggest downloading applet from https://www.topcoder.com/community/competitive-programming/ and see https://www.youtube.com/watch?v=A5vnkkFGOo0 (of about first 20 minutes).

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

arena is not working properly:

screenshot

»
7 years ago, # |
  Vote: I like it +13 Vote: I do not like it

Arena not working for me. The same with web arena

»
7 years ago, # |
  Vote: I like it +1 Vote: I do not like it

Is it possible to solve d1-500 with factorial polynomials?

»
7 years ago, # |
  Vote: I like it +85 Vote: I do not like it
  • »
    »
    7 years ago, # ^ |
      Vote: I like it +57 Vote: I do not like it

    I think you are not missing anything, and this problem is indeed very similar to today's Div1 Medium. Unfortunately, I haven't been checking APIO problems since I graduated from high school :(

    Sorry about that.

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

      Well, individuals can make mistakes, but I don't understand that you didn't had any testers pointing out that.

      But whatever, it seems nobody remembered that APIO problem (and I'm really surprised about this. Why guys?????) I'm pretty sad to miss a trivial 497 points.

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

How to solve Hard? I've seen that the twirl operation actually just allows you to consider basically isomorphism only for even permutations. And it's obvious how to count the number of isomorphism classes if it weren't for this parity stuff. But it just seems impossible to tackle...I'm really curious to see the solution

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

    The usual way to find the number of equivalence classes under a group of actions — Burnside's lemma.

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

      Shit...I need to learn that. I've kept procrastinating it. Do you have any good tutorial?

»
7 years ago, # |
Rev. 3   Vote: I like it +93 Vote: I do not like it

Here is a short summary of solutions. Have fun!

Halving (div1 250)
IncreasingSequences (div1 500)
Trisomorphism (div1 1000)
HalvingEasy (div2 250)
IncreasingSequencesEasy (div2 500)
TrisomorphismEasy (div2 1000)
  • »
    »
    7 years ago, # ^ |
    Rev. 2   Vote: I like it +46 Vote: I do not like it

    It's also possible to do the Div1 1K in polynomial time (code in the practice room):

    Spoiler
  • »
    »
    7 years ago, # ^ |
    Rev. 2   Vote: I like it +45 Vote: I do not like it

    It's also possible to the div1 med by reducing it to this problem: http://mirror.codeforces.com/problemset/problem/559/C.

    For instance, replace L[i],R[i] with L[i]-i, R[i]-i, respectively so we are looking for non-decreasing sequences. For each interval L[i], R[i], we can add the points (i, R[i]+1) and (i+1, L[i]-1). Then, we just need to find the number of paths from (0,0) to (n, R[n-1]) that go only go down/right and don't touch any of the given points. This is a bijection, since we can take the column where we go from row i -> row i+1 to be the i-th number in our sequence. This can be done in O(n^3) if you don't preprocess factorials, but I'm not sure if you can get to O(n^2) with some smarter pre-processing.

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

      If I understood you correctly, I think there is a bijection iff after doing your changes for L and R arrays, we need to make L non-decreaasing (each L[i] is the maximum of all L[j] for j<=i) and R non-decreasing (each R[i] is the minimum of all i such that j>=i) to make the bijection true, and also making those changes in that way won't change the answer.

      Imagine the case where all L[i] are very large except for the last one is very small, there will be a path that go down early at first row (after a few steps), and keep going down, and at row n turn right, and you will avoid all L points since all of them is large except the last one (will be also avoided as L[n-1]-1 is smaller than index current column) , you can also find similar case for R.

      But I believe if you made L non-decreaasing and R non-decreasing in the correct way the bijection will hold.

      Anyway, I really like your solution a lot ^_^

      Thank you :)

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

This question is not about SRM 728. In topcoder is it possible to see SRM announcement at least 1/2 day(s) before? I used to see about SRM in arena in the day of contest. Due to this I miss SRM frequently.

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

    Pro Tips:

    1. Check https://www.topcoder.com/community/events/ (topcoder public calendar)
    2. Like codeforces, topcoder also has a e-mail reminder system. But for doing this you have to go to https://www.topcoder.com/settings/email/, and I suggest turning on "General Newsletter" and "Data Science Newsletter" (because in topcoder "competitive-programming" is included in "data-science").

    Now you have a schedule on SRM 729 and SRM 730:
    SRM 729: February 10th, 12:00-13:35 (UTC -5), writer is Errichto
    SRM 730: February 20th, 07:00-08:35 (UTC -5)