Merge branch 'master' into chao

This commit is contained in:
ljcjames 2022-08-11 22:06:42 +08:00
commit 0db4fdd6b0

View File

@ -7,6 +7,7 @@ const double inf = 1e100, EPS = 1e-6;
const int W = 20; const int W = 20;
double l, now; double l, now;
int n; int n;
//一道墙
struct wall struct wall
{ {
double x, y[6], val[5]; double x, y[6], val[5];
@ -88,7 +89,7 @@ int main()
while (1) while (1)
{ {
scanf("%d", &n); scanf("%d", &n);
if (n == -1)//-1return if (n == -1)// 结束
return 0; return 0;
memset(&w, 0, sizeof(wall) * (n + 1)); memset(&w, 0, sizeof(wall) * (n + 1));
w[0].x = 0; w[0].x = 0;