0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

p47 Saruman's Army(C#)

Posted at

自分(不正解)

自分では、それぞれを開始点にした全探索を思いついたが、貪欲法に沿った考え方が思いつかなかった。
(1)左から考える
の縛りをした後で、
(2)同印をつけたらいいか
の順で考えればよかった。いきなり答えを出そうとしていたのと、左から考えても答えにはならない(他のパターンで直接解決があるのでは)と思い込んでいたのもよくない。

解答

qiitaに使う.jpg

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?