AtCoder,実装

問題方針

所持金が到達できる村に対応しているので愚直にシミュレーションします.

コード#include <bits/stdc++.h>using namespace std;typedef long long ll;int ...