QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#187261#1. I/O TestguguguCompile Error//C++14446b2023-09-24 15:51:012023-09-24 15:51:02

Judging History

你现在查看的是最新测评结果

  • [2023-09-24 15:51:02]
  • 评测
  • [2023-09-24 15:51:01]
  • 提交

config.txt


n = read(),r = read(),m = read();
for(int i=1;i<=m;++i){
	int l = read(),r = read(),v = read();
	deg[r] += v;
	deg[l] -= v;
	ADDEDGE(l,r,1);
}
for(int i=1;i<=n;++i){
	if(deg[i] > 0){
		ADDEDGE(i,T,deg[i] / m);
		cnt += deg[i] / m;
	}
		ADDEDGE(S,i,deg[i] / m);
	}
}
if(max_flow() != cnt){
	puts("....");
	// no solution
} else{
	for each edge{
//		如果被流到了(割),输出  c[i] - m
//		否则输出 c[i]
	}
}

input_test


output_test


Details

Invalid Configuration File: failed to read Nin and Nout