この前作ったハニカムのやつを少し変えて、あとは幅優先探索する。 いま探索しているところが何ターン目のところなのかを記憶しながら探索していく。 #include <cstdio> #include <queue> #include <algorithm> using namespace std; typedef pair<int, int> P; typedef pair<int, P> D; //ターン数、位置</int,></int,></algorithm></queue></cstdio>…
引用をストックしました
引用するにはまずログインしてください
引用をストックできませんでした。再度お試しください
限定公開記事のため引用できません。