Автор zscoder, 9 лет назад, перевод, По-русски

Всем привет!

13 мая 12:35 MSK состоится Tinkoff Challenge — Final Round.

Авторы тура — это я (zscoder, Zi Song Yeoh), AnonymousBunny (Sreejato Kishor Bhattacharya), hloya_ygrt (Юрий Шиляев). Особая благодарность координатору KAN (Николай Калинин), winger (Владислава Исенбаева) и AlexFetisov (Алексею Фитисову) за тестирование задач. Также спасибо MikeMirzayanov (Михаил Мирзаянов) за систему Codeforces и Polygon и компании Tinkoff.ru за проведение чемпионата.

Раунд состоит из семи задач, а продолжительность — два часа. Раунд рейтинговый и открытый для всех, т.е. каждый участник Codeforces Div.1 и Div.2 может принять участие в нем. Разбаловка будет объявлена перед раундом.

20 участников Отборочного тура, подтвердивших возможность онсайт-участия в финале Tinkoff Challenge, будут соревноваться в офисе Tinkoff в Москве. Чтобы болеть за официальных финалистов, сделаем отдельную ссылку, которую добавим позже.Вот ссылка на текущие результаты официальных финалистов.

Список финалистов:

Среди онсайт-финалистов будут разыграны призы:

  • 1 место: 50000р
  • 2 место: 20000р
  • 3-5 места: 10000р

Мы надеемся, что каждый найдет интересную для себя задачу и получит высокий рейтинг!

UPD: Стоимости задач: 500 — 1000 — 1750 — 2000 — 2500 — 2750 — 3500

UPD2: Поздравляем победителей!

Официальные участники Tinkoff Challenge Final Round:

  1. LHiC
  2. SirShokoladina
  3. TeaPot
  4. Kostroma
  5. riadwaw

Победители открытого 414-го раунда Codeforces:

  1. V--o_o--V
  2. LHiC
  3. Um_nik
  4. Petr
  5. Shik

Опубликован разбор задач на английском языке.

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

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

Is everyone allowed to participate in this round, besides not having participated in the previous round?

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

Isn't timing unusual from normal codeforce rounds ? .... Do not want to miss it but have semester exam :(

»
9 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -88 Проголосовать: не нравится

:|

»
9 лет назад, скрыть # |
Rev. 2  
Проголосовать: нравится -32 Проголосовать: не нравится

Thank you)

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

zscoder Congratulations for becoming red :D

I remember last time you prepared a round you was purple

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

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

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

Are the finalists gonna be in one room?

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

I have an exam, but I'll participate :"D

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -31 Проголосовать: не нравится

Hopefully,there could be data structures related problems in this challenge......

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

hopefully there will be short statements !!!

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

zscoder is this the round you mentioned here ?

»
9 лет назад, скрыть # |
Rev. 3  
Проголосовать: нравится -43 Проголосовать: не нравится

кто все эти люди?

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

Hope there won't be delay before the contest.

»
9 лет назад, скрыть # |
 
Проголосовать: нравится -24 Проголосовать: не нравится

1 hour delaying would be better...

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

Hot Day and cool codeforces!

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

I predict there will be a question on permutations.

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

I predict that problem C will be easier than previous contest.

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

I'm esemoooooo.

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

Не могу зарегестрироваться на раунд! В чём проблема?

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

I just spotted this lucky cheater sepanta I hope that Mike will take care of him.

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

31 hacks on the same one!! What a cheater!!

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

my solution for problem C is showing "running test case 5" for the past 10mins.

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

I am waiting for explanation why it was not possible just to get Problem C AC at the first attempt.

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

How to solve B?

P.S. I feel like either A or B is getting harder than C nowadays. Last contest, I solved C easily, but unable to solve A. Today, I solved C (not so easily), but don't have any idea at all to solve B. It feels just weird...

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

How to do F? I hope expected solution is not

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

    I had N^1.5*10, didn't passed 16'th test. But I hope it can be optimized in the way to pass.

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

      I think NlogN*10 should pass. Just hold the information for lazy propagation as a permutation: all digits i became P[i]. Unfortunately, somehow, in an hour I've got 15 WAs, TLEs and runtime errors. However, it makes sense to work, it's just that I had a lot of bugs. You can propagate something like P[son][i] becomes P[node][P[son][i]]

      LE: of course it got AC immediatly after the contest

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

        Implementation is rekt

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

          Neah, it was easy. I don't know what happened to me. I used to have 0 bugs till a week ago and now every source that I code has the stupidest bugs ever. I had the right idea just after half of the submission I made: initially I though that it's enough to hold all relevant moves on some node and then traverse them and push them to the sons, as I thought there are at most 10 relevant moves (through relevant I mean they change something). Ohh, and of course I spent about 10 minutes to find out that there could be operations that change digit x in x... I think this should've been mentioned. Anyway, the problems were nice but I hurried a lot and wasn't careful because I had a lot of WAs (even on C, I still have no idea what I'm doing wrong as I have a complete proof of my solution, even though I think I overcomplicated the problem)

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

          That was a joke

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

        Damn, my solution passes if I switch to size of block exactly sqrt(N) and submit on MS C++ instead of GNU. Such a pain.

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

Can someone please explain C?

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

How to solve Problem D?

  • »
    »
    9 лет назад, скрыть # ^ |
    Rev. 7  
    Проголосовать: нравится -13 Проголосовать: не нравится

    i think graph should be linear line of compressed cliques and vertices of degree 1 and 2. i.e if deg>2 it should form a clique in combination to other nodes. else -1. but not able to code in time.

    Edit: i got the mistake. it need not be clique.
    
»
9 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

How to solve B ? My geometry is weaker than the weakest's

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

when I will be able to view answers

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

[Problem D] I needed just 5 more minutes to solve D. Anyway I solved it as follows:
1. For each city, add itself to its adjacency list.
2. Using hashing, we will use DSU to make clusters of cities with exactly same adjacency.
3. Nodes in a cluster will have the same label value.
4. For each city, modify its adjacency list by replacing all cities in it by their representative i.e for (int v: g[u]) replace v by rep(v).
5. Now if there are more than 2 cities in any adjanceny list, its impossible.
6. Do a dfs, and carefully assign values :)

I hope this is a correct solution.
UPD: Here is the code that I missed by 5 mins.
UPD2: It got AC.

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

Can anyone please share the idea to solve problem D?

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

problem C looks complicated any simple solution ?

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

Very interesting C task :D

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

Failed to handle cornercases of k={n-3, n-2, n-1} in E on last two minutes of contest having correct ideas, such a pain.....

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

There's this guy in this contest whose id is sepanta and he hacked 35 times successfully..and most amusing fact is the person he hacked is Mr.Fox and he hacked him 35 times!!! the guy sepanta has solved 2 problems (A and B) and is currently standing on 42 :| what the hell???

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

rating: rest in peace

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

what is the 4th test case of problem C?

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

Explain please how can i solve B.

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

Anyone please help me to solve B?

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

Quite fast system test today..

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

Fastest system testing I have ever seen :O

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

Ultrafast speed of systest <3

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

Amazingly fast system testing

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

Fastest System Testing ever !!!

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

what's the answer of s = "ddd", t = "aaa" for problem C ?

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

Why did my code got TLE? Complexity looks fine to me — CODE

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

How to hack B?

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

Could someone please explain to me why in Test Case 4 (abc aaa), the answer is aab?

I feel the answer should be aba, because Oleg will place 'a' at Position 1, then Igor would place 'a' at Position 3 because he wants the string to be lexicographically large, so Oleg will be left with Position 2 and he'll place b at Position 2.

Thanks in advance!

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

27081526 In this submit time equal 405ms, but it got verdict TL. How it could possible?

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

pls anyone could explain me why the answer of the test Oleg's reddit and Igor's abcdef is dfdeed but not dfdede ? (test 5)

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

Can anyone please explain the output of this test case in problem C.

reddit

abcdef

Expected answer is this --> dfdeed

My answer --> dfdede

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

Fastest system test, and fastest rating update ever, nice round :D

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

How to make a segment sum tree with range updates and range queries? I'm asking for problem F, to maintain a segment tree for every digit that have sums like that digit was 1. :)

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

Can problem F be solved with DSU on Segment tree? I tried really hard but still in vain with TLEs. It seems like it can pass in time if I change long long to int, but of course with WA.

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

I submitted two codes one with long double (code) and one with double code.

double got AC and long double got WA on test 1(though it works perfectly on my machine). I always have a rough time with doubles. Am I missing something? some compiler issues?

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

Why ratings are updated without removing cheaters?

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

In problem C can someone explain test case:

reddit
abcdef

The answer is:

dfdeed
  • Oleg plays with letters dde
  • Igor plays with letters fed
  1. Oleg plays: d?????
  2. Igor plays: df????
  3. Oleg plays: dfd???
  4. Igor plays: dfde??

So why would Oleg now play dfdee? — it is not optimal for him?

He should play dfde?e.

So Igor must play: dfdede

For Oleg dfdede is better than dfdeed?

UPDate: got it

Step 4. Igor plays: dfd??d forceing e on the 4th spot.

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

Now that this round is finished, when will you announce the random playrix t-shirt winners ? KAN

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

Игра:

Дан код с контеста по задаче D

Нужно добавить не более 2 непробельных символов и получить АС.

Есть несколько решений!

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

In D tests does not check for overflow in clique check.

This AC submission http://mirror.codeforces.com/contest/794/submission/27090233 would fail for almost every graph with n = 65538, m = 98305

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

Hello guys ! Can someone please help me in problem C. A test case : abc aaa . In the first turn the first player will put 'a' in the first place,then in the second chance the second player can put 'a' either in the second place or in the third place. According to the solutions which have passed they put it in the second place. But i think it will be more optimal to put it in the third place. this way it would be lexicographically bigger from the second player's point of view. Can somebody please explain this to me ?

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

    No. The optimal strategy for the first player is to place his letter 'b' to the last position on the first turn.

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

    As it was written player can place their letter anywhere instead of question marks. So the first turn of Oleg is to place the 'b' at the end. Then, as the biggest letter in Igor's set is 'a' he will place it also at the end. Then, the Oleg's turn is to put 'a' to the first letter. Consequently, the answer is 'aab'.

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

Есть подозрение, что в текущих результатах финалистов кого-то не хватает :D

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

Could anyone explain me the last input-output example of problem D? Although there is note under the example, I can't catch its point.

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

I am getting TLE for 11 test case for problem C in nlogn. Still it gives TLE. My Submission : http://mirror.codeforces.com/contest/794/submission/27085787 Can anybody please tell me reason for that. Thanks

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

    27115362 Here you go.

    Basically you TLE because of these lines.

        for( i=0;i<n/2;i++){
            sm=sm+a[i];
            lr=lr+b[i];
        }
    

    these operation are n^2 instead of n as you recopy the whole string each time. you need to write it as

        for( i=0;i<n/2;i++){
            sm+=a[i];
            lr+=b[i];
        }
    

    instead.

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

Everybody's rating was back to that before the contest for a moment to ban sepanta.

Anyway, justice was done. Well done, Codeforces!

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

I tried to solve the problem E.**Leha and security system** https://pastebin.com/haK2wtvr upon submission I am getting run time exception with Exit code is 1

Can anybody help me to figure out what went wrong. Thanks in advance.