hello !
could somebody check this, thanks
input :
10 10
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
3 1
3 2
3 3
3 4
3 5
3 6
3 7
3 8
3 9
3 10
4 1
4 2
4 3
4 4
4 5
4 6
4 7
4 8
4 9
4 10
5 1
5 2
5 3
5 4
5 5
5 6
5 7
5 8
5 9
5 10
6 1
6 2
6 3
6 4
6 5
6 6
6 7
6 8
6 9
6 ...
Search found 5 matches
- Sun Jan 04, 2004 2:44 pm
- Forum: Volume 105 (10500-10599)
- Topic: 10599 - Robots(II)
- Replies: 27
- Views: 14906
- Sat Jan 03, 2004 1:48 am
- Forum: Volume 100 (10000-10099)
- Topic: 10075 - Airlines
- Replies: 9
- Views: 6943
- Wed Dec 31, 2003 9:44 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10065 - Useless Tile Packers
- Replies: 22
- Views: 8381
10065 (WA)
HI!!
I keep getting WA with this problem. I cannot find mistake in my program. Could somebody
help or give me some test cases ?
[cpp]
#include <iostream>
#include <cmath>
#define MAX 102
using namespace std;
struct point {
double x,y;
} t[MAX];
double area(int i, int j, int n){
double ptmp ...
I keep getting WA with this problem. I cannot find mistake in my program. Could somebody
help or give me some test cases ?
[cpp]
#include <iostream>
#include <cmath>
#define MAX 102
using namespace std;
struct point {
double x,y;
} t[MAX];
double area(int i, int j, int n){
double ptmp ...
- Tue Dec 30, 2003 11:11 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10075 - Airlines
- Replies: 9
- Views: 6943
10075 - Airlines
hi, i'am trying to solve this magic problem. I calculate distance between two cities using following formula:
d=acos(cos(lat1)*cos(lat2)*cos(lon1-lon2)+sin(lat1)*sin(lat2))*R,
lat_i and lon_i are latitude and longitude. Then use floyd to calculate minimal disctance.
I've got correct answers for ...
d=acos(cos(lat1)*cos(lat2)*cos(lon1-lon2)+sin(lat1)*sin(lat2))*R,
lat_i and lon_i are latitude and longitude. Then use floyd to calculate minimal disctance.
I've got correct answers for ...
- Thu Oct 09, 2003 12:25 am
- Forum: Volume 105 (10500-10599)
- Topic: 10563 - Least Squares
- Replies: 14
- Views: 8753
10563 - Least Squares
Hi!
I can't find what's wrong with my sourcecode. I keep getting WA. Could sombody post some tests ??. Here is my source. I think this problem is rather easy o i misunderstood samething...
[cpp]
#include <iostream.h>
#define min(a,b)(a<b ? a : b)
#define MAX 110
char tab[MAX][MAX];
char c[255 ...
I can't find what's wrong with my sourcecode. I keep getting WA. Could sombody post some tests ??. Here is my source. I think this problem is rather easy o i misunderstood samething...
[cpp]
#include <iostream.h>
#define min(a,b)(a<b ? a : b)
#define MAX 110
char tab[MAX][MAX];
char c[255 ...