We will hold AtCoder Beginner Contest 486.
- Contest URL: https://atcoder.jp/contests/abc486
- Start Time: http://www.timeanddate.com/worldclock/fixedtime.html?iso=20261128T2100&p1=248
- Duration: 100 minutes
- Writer: harurun4635, kyopro_friends
- Tester: MMNMM, sounansya
- Rated range: ~ 1999
- The point values: 100-200-300-400-450-525-600
We are looking forward to your participation!









中国人能飞,中国电脑更能飞
CCF=Chinese Can Fly (CCF=Copy CF)
mj 呢?飞哪里了?
Wheres "MJ"?Where WILL it FLY?
I hope I can solve ABCDE.
I hope I can solve ABCD, good luck as always to everyone
CCF=Chinese Can Fly (CCF=Copy CF)
I want some easy rounds to comfort my feelings.
Hope I won't get my ratings decreased. :)
good luck.
i can only solve A and B :(
nt
Nice problems and $$$E$$$ was a nice problem, $$$F$$$ is binary search?
what was that man how the flip do you solve D? was it greedy?
It is dp (if you want to know more,go to my private message to ask me=))
The idea of this code is:
dp[i][j]stands for the minimum stamina cost after dealing with the firstimonsters while being at levelj. Initially, before fighting any monster, the level is 1 and the cost is 0. We then process the firstn−1monsters 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 firstn−1monsters, we check all possible levels. If a level is high enough to fight then‑th monster, we take its corresponding minimum cost plus the stamina cost for defeating then‑th monster, and pick the smallest total. If no valid way exists, we output-1Q.(Translate by AI)
check out 0/1 knapsack
How to solve Problem D? I can't use Dp to solve it ? Could you give me a standard code?Thank you very much
https://atcoder.jp/contests/abc486/submissions/81151084
请问你的Dp思路是如何想出来的(循环的范围是如何确定的)谢谢
稍等我正在写 你去我洛谷找我name:pangyurui
这个代码的思路就是:dp [i][j] 表示处理完前 i 只怪、等级是 j 的最小体力消耗,一开始没打怪的时候等级是 1、消耗为 0;然后依次处理前 n−1 只怪,每一只都可以选择不打,保持原来的等级和消耗不变,要是自己当前等级大于等于这只怪的等级,也可以选择打掉,等级就加一、消耗加上这只怪对应的体力;等前 n−1 只全部算完之后,我们就枚举所有等级,只要等级够打第 n 只怪,就用对应的最小消耗再加上打第 n 只怪的体力,从中选出最小的结果,如果没有符合条件的方案就输出 -1。(这是豆包对我的思路的总结but思路是我的)
The duration of the competition is too short for me. I always feel anxious and can't come up with any ideas
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
$$$\text{Oh, I'm so sad that the translator tricked me, and I misinterpreted problem C and wasted 20 minutes! Oh, my ranting!}$$$
Oh! Me too
$$$\textsf{Oh, I understand you. D is tooooooo simple — I solved it in a short time. If I hadn't been tricked by the translator, I could have solved C in a short time too!}$$$
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