摘要:
初学dfs参考别人代码,如有雷同,见怪不怪。#include using namespace std; int aa[25][25]; int maxa=0; int step[25]={0},n; void dfs(int a,int b) { int t=b; step[a]=1; for(int i=0;i>n; for(int i=0;i>aa[i][j]; ... 阅读全文
摘要:
Description n participants of << crazy tea party >> sit around the table. Each minute one pair of neighbors can change their places. Find the minimum 阅读全文