Hi, tan_Yui.
Really thx your help, or I had decided to skip the problem already.
This testing data really help me realize where the problem is.
b.t.w. input '10 100...' must be the copy-paste error, never mind.
best regard...
Search found 2 matches
- Thu Jan 19, 2006 2:09 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65402
- Wed Jan 18, 2006 6:09 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65402
116 WA, plz help, had tried test data
Here is my code...
//116
#include <iostream>
using namespace std;
int value[10][100];
int sum[10][100][2];
short int way[100];
int row, column, i, j, a, b, c, min, nextcolumn, index;
void main()
{
while(cin>>row>>column)
{
for(i=0;i<row;i++)
for(j=0;j<column;j++)
cin>>value[i][j];
for(i ...
//116
#include <iostream>
using namespace std;
int value[10][100];
int sum[10][100][2];
short int way[100];
int row, column, i, j, a, b, c, min, nextcolumn, index;
void main()
{
while(cin>>row>>column)
{
for(i=0;i<row;i++)
for(j=0;j<column;j++)
cin>>value[i][j];
for(i ...