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

Автор ConstructorU, история, 3 года назад, По-русски

Hey Codeforces,

SIT

Don’t miss tomorrow’s SIT STAR Contest 2021, organized by the Schaffhausen Institute of Technology (SIT) in Switzerland to promote interest in Computer Science and Software Engineering.

The online coding contest will be happening tomorrow on February 10, from 8:00 to 12:00 am UTC.

During the event, you will face 12 or 13 algorithmic programming challenges of increasing difficulty (Div 4, Div 3, Div 2). The contest is open to all, and you can sign up for free here.

Register Now→

Why participate?

Apart from being a fun coding experience, SIT STAR Contest 2021 is the easiest way to enroll in a fully-funded master’s program in Computer Science and Software Engineering at SIT. The prizes at stake range from small souvenirs from Switzerland to tuition waivers for master’s students to full scholarships the cover both tuition and living expenses.

Note that you must hold a bachelor’s degree or be in the final year of your studies to join SIT in September 2021.

Don’t miss your chance to continue your studies at SIT!

More about SIT

Schaffhausen Institute of Technology is founded by entrepreneurs, led by scientists, and advanced by world-class researchers. Based in Schaffhausen, Switzerland, SIT drives knowledge through science across many projects. In particular, SIT Master’s offers a blended degree in Computer Science and Software Engineering that you can attend in person, online, or as a mix of both.

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

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

Will there any prizes for top participants, like t-shirts or other souvenirs?

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

ANIME NOT GUT!!!

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

When i enter the SIT codeforces contest it tells me that the access is denied — Will it be open for people some min before the contest ?

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

    It seems that you logged in with your common Codeforces account. Please log out, use the credentials that we sent to you in the email.

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

will the contest be rated?

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

What was the intended solution for Problem K?
Was it SCC+combinatorics or not?
In either case, could someone please share the solution!?

UPD:Got the solution, thanks!

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

I couldn't find my university when registering

So if my university is not in the list I can't participate ?

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

    You can participate in the SIT STAR Contest. Just add the name of your university by entering it in this field. There is such an option. Thanks!

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

      I am try to login with the credentials provided in the mail. But it says wrong username or password. Please help!

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

I can't able to log in. It is showing "Suspicious activity registered". How to solve this?

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

    I had same issue try to open the site from the first mail they sent for the verification

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

I'm trying to log in but it says "Suspicious activity registered. Repeat your action in a few minutes.". What should I do?

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

I can't log in using provided password, anyone having the same issue?

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

I'm getting this [user:SITstarContest,2021-02-10] Suspicious activity registered. Repeat your action in a few minutes.

Invalid handle/email or password

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

    same with me.

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

    Please make sure that you: 1) Registered here; 2) Received a confirmation letter with the credentials to log in. 3) Enter the data in the field without adding a space before or after;

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

Can't login.

Suspicious activity registered. Repeat your action in a few minutes.

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

    Me, too. What happened?

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

      Please for entering the contest use the credentials we sent you in the email. When you enter credentials, please delete all the spaces after the email.

      It should help.

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

        It doesn't help

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

        I'm copy/pasting the same but it still shows the same error: suspicious activity, and invalid handle/password

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

          suspicious activity --> try in several minutes, probably you have tried to log in too many times.

          invalid handle/password --> enter your email without any additional spaces, same for the password. Double-check this, it should work.

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

    Same with me . Help !

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

      Please make sure that you: 1) Registered here; 2) Received a confirmation letter with the credentials to log in. 3) Enter the data in the field without adding a space before or after;

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

I registered twice but didn't get any mail can someone help

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

    Please check the promotions folder or spam. You can send your email to messages and I will provide credentials to you there.

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

where is the contest link???

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

    After registration for the contest, you should have received an email with the link and your credentials. If you can not find the email, please check the promotions folder and spam.

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

Contest was nice, but unfortunately, Problem M — Binary Strings was available on SPOJ.

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

willl there be prizes for top 70?

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

Will there be a Editorial?

And how to do the problem -> (a, b) becomes (a + b, b) or (a, a + b).
Just came up with a BFS solution, but that would TLE obviously.

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

    It's like Euclidean algorithm for GCD. Our task is in minimization of given pair (x, y) and we can do the following transformation in one operation: (x, y) -> (x, y — x). Of course we can do it only with x < y. Notice that the order of numbers in pair doesn't matter(if we have (a, b), then we also have (b, a)). Then, just find is it possible to get (1, 1) from (x, y). You can do it iteratively, with one easy optimization(try it by yourself)

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

      Thanks got it but how to prove that going from (x, y) to (x, y%x) will give the minimum possible answer ?

      My Solution for E : https://pastebin.com/EF1M9G3V

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

        The smaller the difference between x and y, the faster numbers will decrease, right? So when you are doing y = y % x, you will get y between 0 and x — 1. You can not get something more closer to x

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

    SIT STAR Contest editorial is already available on the Main tab of the Contest link.

    We hope you liked the problems!

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

What is the solution to the problem Cards and Numbers?

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

    We can use one or two the most frequent numbers. While counting the numbers, try to avoid cases, when a[i] == b[i].

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

Is it possible to submit for practice after the contest is over?

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

could you please enable viewing other people's submissions? thanks

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

do we have an online mirror for the contest ??

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

    If you were registered for the Contest, you can now take part virtually.

    To do this, please follow the link that we sent in the email, enter credentials from the email and start virtual participation.

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

How to be part of the group? I want to check the editorial but I can't view it. I am not able to find the invite anywhere. Where it was sent?

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

    Did you register for the SIT STAR Contest? If yes, please check your promotions folder or spam for the link and your credentials. If you still can not find the email with the link and credentials, please contact us via messages here.

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

      I participated in the contest. I have the credentials. How to view using them?

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

        Please login the same way as you did for the Contest. There is a "Home" tab where we added the SIT STAR Contest editorial.

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

When we will know about prizes and the free Master Degree program?

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

    Winners will be announced next week.

    Thank you for your participation and interest in SIT! We hope you enjoyed the problems!

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

Can you please allow us to view the submissions of other participants?

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

Can anybody show their solution to problem G? I read the editorial but still a little confused about it.

Thanks in advance.

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

    I am sharing my solution here, but note that it's for $$$O(|s|^2)$$$ which is a little overkill for this problem.

    Suppose there are 1000 rows and the string s is "abc".

    Now, let's consider how many solutions exist if you start at the first position of the first row. It's basically $$$2^{|s|-1} = 2^2$$$ (because you have two steps you can go from the first position: a->b, b->c; and in each step you can go either down or right).

    Note that the number of solutions for row 2, 3, 4, 5.... 998 is the same as well. So you can just add $$$998 \times 2^2$$$ to answer for that.

    Now, what about the rest? Consider row 999. In this case, the number of solutions is no longer $$$2^2$$$ as you can't go down twice. Note that there can be $$$|s|-1 = 14$$$ such rows at most. So for those, we can just do a DP where states are the number of rows left and the current position in string i.e. $$$O(|s|^2)$$$ complexity.

    The DP formula is $$$DP[rowLeft][pos] = DP[rowLeft][pos+1] + DP[rowLeft-1][pos+1]$$$.

    Here, the first term $$$DP[rowLeft][pos+1]$$$ represents going one step right, the second term $$$DP[rowLeft-1][pos+1]$$$ represents going one step down (this might be invalid, so that condition needs to be checked). The reasoning is like — when you go one step right or down, you are going into next position of string s, and when you are going one step down, you have one less rowLeft.

    See how this will fit in constraints of the original problem even if $$$rowLeft \leq 10^4$$$? That's the idea shown in the editorial. Just instead of rowLeft, they used something like currentRow and incremented that instead of decrementing (will give same result).

    Here's my code written based on the above idea.

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

Please could you make the test cases visible for the Practice and Main contests, now that they are over?

In particular in the case of the Practice contest, in the absence of an editorial I am at a loss on question K. With no editorial, no access to others' solutions, and no visibility of test case 22 (which I keep failing), it's very difficult to know what I've done wrong.

Thanks