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

Автор chokudai, история, 3 года назад, По-английски

We will hold NS Solutions Corporation Programming Contest 2023(AtCoder Beginner Contest 303).

The point values will be 100-200-300-400-475-525-550-600. We are looking forward to your participation!

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

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

Problem statement of C is ambiguous,it says we can only consume an item at a point if health is strictly less than K at that point.

But in sample 2 it says -'Note that although there is an item at his initial point (0,0), he does not consume it before the 1-st move, because items are already consumed after a move.'but the health(h=1) is less than k(5) , shouldn't we consume the item and if not when exactly does it gets consumed so it's not available now?

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

what was the problem in setting constraints for F such that overflow could be avoided? Had "fun" whole contest trying to fix overflows.

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

I really like and appreciate the atcoder platform but sometimes the ABC's do feel unbalanced.

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

Different Solution for E:

A node with degree > 2 is the center of star. Hence for each such nodes we can append its degree to the answer and remove it along with its neighbors because they are just leaves in some star.

We are left with stars of level 2. Just count the number of remaining nodes and divide it by 3 to obtain the number of level 2 stars.

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

how to solve F ?

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

How to solve F?

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

How to solve problem D???

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

    You can use DP to solve the problem, consider the switching ON and OFF of the caps lock the states of you DP, now as far as transitions are concerned if you want to press the letter 'a', you can do this either by CAPS OFF + X or by CAPS ON + Y, and vice versa for the letter 'A'.

    spoiler

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

My submission of F gets AC on 38/40 of the test cases. Can anyone tell me what is the problem?