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

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

Hi CF community Xenia and Weights I am thinking about this problem past 3 days and not got any approach in my mind reading editorial also didn't helped me (for this problem) please share your approaches and how did you solved it Thanks and regards

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

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

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

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

What about writing a comment below the editorial? Explain which part you didn't understand.

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

    they have converted the problem into a graph problem 1) what they are going to do with that graph 2) is there any other way to solve this (without graphs) Thanks for replying

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

    I thought that writting comments in editorial may not help for such old contests (I haven't tried it though ) .

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

You can consider a graph where your nodes are tridimensional , (pos,diff,prev) where pos is the current step, the diff is the current absolute difference on the two scales , and prev , is the las used weight , we can see that prev in [1..10] as well as diff is in [1..10] becase if the difference is greater than 10 we can see that it's impossible to place a weight that can overweight the other , you can do a simple dfs in graph having a m*10*10 nodes and for every nodes there is a maximum 10 edges, and you can take the first possible combinaison by keepin track of the weight you put in a vector and then erase it if it's an impass, here is my submission 67966582

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

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