求两种写法的区别或者为何等价
  • 板块学术版
  • 楼主windows_fleon
  • 当前回复17
  • 已保存回复17
  • 发布时间2023/4/27 11:19
  • 上次更新2023/10/23 17:26:40
查看原帖
求两种写法的区别或者为何等价
531499
windows_fleon楼主2023/4/27 11:19

第一种

int dinic(){
		int res=0;
		while(bfs()) res+=find(S,inf);
		return res;
	}

第二种

int go(){
		int res=0,f;
		while(bfs()) while(f=find(S,inf)) res+=f;
		return res;
	}
2023/4/27 11:19
加载中...