摘要:
题目:①、USACO ②、NOCOW注意: ①、两个农场之间可能多条路径,并且长度不同; ②、无向图;代码:#include<stdio.h>#include<assert.h>int main(){ FILE *fin,*fout; fin=fopen("comehome.in","r"); fout=fopen("comehome.out","w"); assert(fin); assert(fout); int Arc[58][58]; int pathNum,i,j,k,length 阅读全文
posted @ 2012-04-24 16:49
无殇天下
阅读(199)
评论(0)
推荐(0)
摘要:
题目:http://ace.delos.com/usacoprob2?a=JLwu8ZOtbGJ&S=maze1 http://www.nocow.cn/index.php/Translate:USACO/maze1#include<iostream>#include<fstream>#include<queue>using namespace std;struct Node{ int num; int link[4];};int main(){ //ifstream fin("1.txt"); //ofstream fout(& 阅读全文
posted @ 2012-04-24 15:06
无殇天下
阅读(116)
评论(0)
推荐(0)

浙公网安备 33010602011771号