atcoder_official's blog

By atcoder_official, history, 36 hours ago, In English

We will hold AtCoder Beginner Contest 486.

We are looking forward to your participation!

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

»
10 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

中国人能飞,中国电脑更能飞

  • »
    »
    9 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    CCF=Chinese Can Fly (CCF=Copy CF)

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

    mj 呢?飞哪里了?

    Wheres "MJ"?Where WILL it FLY?

»
9 hours ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

I hope I can solve ABCDE.

»
9 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I hope I can solve ABCD, good luck as always to everyone

»
9 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

CCF=Chinese Can Fly (CCF=Copy CF)

»
9 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

I want some easy rounds to comfort my feelings.

Hope I won't get my ratings decreased. :)

»
9 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

good luck.

»
8 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

i can only solve A and B :(

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Nice problems and $$$E$$$ was a nice problem, $$$F$$$ is binary search?

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

what was that man how the flip do you solve D? was it greedy?

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

    It is dp (if you want to know more,go to my private message to ask me=))

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

    The idea of this code is: dp[i][j] stands for the minimum stamina cost after dealing with the first i monsters while being at level j. Initially, before fighting any monster, the level is 1 and the cost is 0. We then process the first n−1 monsters one by one. For each monster, we can choose not to fight it, keeping our level and stamina cost unchanged. If our current level is at least the monster's required level, we may choose to defeat it, which increases our level by one and adds the monster's stamina cost to the total. After finishing the first n−1 monsters, we check all possible levels. If a level is high enough to fight the n‑th monster, we take its corresponding minimum cost plus the stamina cost for defeating the n‑th monster, and pick the smallest total. If no valid way exists, we output -1Q.

    (Translate by AI)

  • »
    »
    6 hours ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    check out 0/1 knapsack

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

How to solve Problem D? I can't use Dp to solve it ? Could you give me a standard code?Thank you very much

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

    稍等我正在写 你去我洛谷找我name:pangyurui

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

    这个代码的思路就是:dp [i][j] 表示处理完前 i 只怪、等级是 j 的最小体力消耗,一开始没打怪的时候等级是 1、消耗为 0;然后依次处理前 n−1 只怪,每一只都可以选择不打,保持原来的等级和消耗不变,要是自己当前等级大于等于这只怪的等级,也可以选择打掉,等级就加一、消耗加上这只怪对应的体力;等前 n−1 只全部算完之后,我们就枚举所有等级,只要等级够打第 n 只怪,就用对应的最小消耗再加上打第 n 只怪的体力,从中选出最小的结果,如果没有符合条件的方案就输出 -1。(这是豆包对我的思路的总结but思路是我的)

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

The duration of the competition is too short for me. I always feel anxious and can't come up with any ideas

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

am i missing anything? it seems like the only purpose of all the a and b stuff is to show the out degree of each vertex is two

»
7 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

$$$\text{Oh, I'm so sad that the translator tricked me, and I misinterpreted problem C and wasted 20 minutes! Oh, my ranting!}$$$

»
6 hours ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Problem F was a nice Problem...

I would be happy if i could solve it before the contest end.. took me another half an hour.. i got the solution, but killed the time while implementing..

My submission: https://atcoder.jp/contests/abc486/submissions/81167198