2018-07-02から1日間の記事一覧
ABC054 C - One-stroke Path next_permutationを使う問題。 int main(){ int n, m, a[30], b[30], c[10], ans=0; cin >> n >> m; for(int i=0; i<m; i++){ cin >> a[i] >> b[i]; } for(int i=0; i</m;>
ABC054 C - One-stroke Path next_permutationを使う問題。 int main(){ int n, m, a[30], b[30], c[10], ans=0; cin >> n >> m; for(int i=0; i<m; i++){ cin >> a[i] >> b[i]; } for(int i=0; i</m;>