back_slash's blog

By back_slash, history, 7 years ago, In English

I am writing this blog mainly for 2 reasons. One is to discuss the problems. I want to know what is the logic behind C Large. And also if we can get a count of how many people got full points in the round.

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

| Write comment?
»
7 years ago, # |
  Vote: I like it +24 Vote: I do not like it
Hint
  • »
    »
    7 years ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Hint for B please ?

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

      It's Greedy. First sort the given array. Then check if you can dance. If you can't dance, check if you can recruit.

      From the available teams, for dancing, dance with the team which has least energy. And for recruiting, recruit the team which has highest energy.

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

      The following observations were important:

      • You can process the teams in any order (ie. decide to dance, recruit or truce) because if he current one isn't the one you want to process you can just make an excuse

      • Recruiting is most beneficial when done against highest energy teams

      • Dancing is most beneficial when done against lowest energy teams

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

    Can you elaborate a bit more please(for C large) ?

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

My solutions

Problem 1.

Ans

Problem 2.

Ans

Problem 3.

Ans

Problem 4.

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

What is with the ranking? It shows my rank when I am logged in but not otherwise??