Search found 8 matches
- Sun Mar 14, 2004 11:03 pm
- Forum: Volume 3 (300-399)
- Topic: 317 - Hexagon
- Replies: 3
- Views: 3418
Same Problem
ec3_limz I have the same problem as you. I don't know the algorithm
- Thu Mar 11, 2004 10:53 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
Finaly I Did it
Thanks to Subeen your output save me.
Finally I implement Prim's Algorithm but i hava "Presentation Errors"
Basicaly I do.
[cpp]
While (num--){
...
...
printf("%.2lf\n\n",salida);
}
[/cpp]
with
[cpp]
While (num--){
...
...
printf("%.2lf\n",salida);
if (num>0){
cout<<endl;
}
}
[/cpp ...
Finally I implement Prim's Algorithm but i hava "Presentation Errors"
Basicaly I do.
[cpp]
While (num--){
...
...
printf("%.2lf\n\n",salida);
}
[/cpp]
with
[cpp]
While (num--){
...
...
printf("%.2lf\n",salida);
if (num>0){
cout<<endl;
}
}
[/cpp ...
- Thu Mar 11, 2004 2:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
- Thu Mar 11, 2004 8:23 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
INPUT/OUTPUT example
I have this input:
[cpp]
10
2
1.4 0.4
1.0 0.3
1
3.4 5.0
10
4.2 1.6
0.3 4.6
6.2 0.0
8.9 6.8
3.9 6.7
6.0 3.3
9.7 7.4
1.5 0.7
6.5 8.9
2.1 3.0
1
6.6 7.3
9
8.0 3.2
0.9 9.7
6.8 7.6
8.9 2.1
9.6 6.0
8.6 6.2
6.4 9.1
5.0 8.8
3.1 1.8
9
4.0 7.7
4.4 1.7
8.3 2.0
1.8 8.2
2.8 7.0
2.4 2.2
4.4 0.1
7.9 2.4
7.3 6 ...
[cpp]
10
2
1.4 0.4
1.0 0.3
1
3.4 5.0
10
4.2 1.6
0.3 4.6
6.2 0.0
8.9 6.8
3.9 6.7
6.0 3.3
9.7 7.4
1.5 0.7
6.5 8.9
2.1 3.0
1
6.6 7.3
9
8.0 3.2
0.9 9.7
6.8 7.6
8.9 2.1
9.6 6.0
8.6 6.2
6.4 9.1
5.0 8.8
3.1 1.8
9
4.0 7.7
4.4 1.7
8.3 2.0
1.8 8.2
2.8 7.0
2.4 2.2
4.4 0.1
7.9 2.4
7.3 6 ...
- Wed Mar 10, 2004 11:25 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
I think the problem is output
I Think the problem is output.
I write:
while(numtests>0)
cout<<number whith 2 decimal precition (redonded, shall i try truncated?)
cout<<endl;
end while
Is this correct?
I write:
while(numtests>0)
cout<<number whith 2 decimal precition (redonded, shall i try truncated?)
cout<<endl;
end while
Is this correct?
- Wed Mar 10, 2004 11:22 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
Float -> Double
I tried with all floats to doubles and don't work.
Thanks
Any other suggest?
Thanks
Any other suggest?
- Wed Mar 10, 2004 8:21 am
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
I still need help
Thank, I know the code isn't acurancy. (I will recode when it's necessary)
I have got a "kruskal" algorithm and then I have recode it.
Seems that works , but always give me Wrong Answer. Why?
I have got a "kruskal" algorithm and then I have recode it.
Seems that works , but always give me Wrong Answer. Why?
- Tue Mar 09, 2004 11:16 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10034 - Freckles
- Replies: 101
- Views: 49000
10034 "Problem A: Freckles" Input/Output & WA
I recode this code
I have this code
[cpp]
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <math.h>
using namespace std;
/* Tipos */
struct EdgeOfGraph {
int vertex1,vertex2;
float weight;
};
typedef EdgeOfGraph edge;
typedef struct tipo{
float x ...
I have this code
[cpp]
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#include <math.h>
using namespace std;
/* Tipos */
struct EdgeOfGraph {
int vertex1,vertex2;
float weight;
};
typedef EdgeOfGraph edge;
typedef struct tipo{
float x ...