摘要: Description: 有n头牛排在一排, 有ML个条件(x,y,w)表示x,y希望彼此之间的距离小于等于w,有MD个条件(x,y,w)表示x,y希望彼此之间的距离大于等于w. 问1号奶牛和N 号奶牛之间的距离最大为多少。无解输出 1,如果有合法方案,但n号点可以在无穷大输出 2. Analysi 阅读全文
posted @ 2019-05-04 21:48 Zforw 阅读(11) 评论(0) 推荐(0) 编辑
摘要: Description: 农民John 决定将水引入到他的n(1 include include include define N 500 using namespace std; struct edge{ int from,to,w; bool operator j) { add(i,j,v); 阅读全文
posted @ 2019-05-04 21:44 Zforw 阅读(31) 评论(0) 推荐(0) 编辑