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;
double l, now;
int n;
//一道墙
struct wall
{
double x, y[6], val[5];
@ -88,7 +89,7 @@ int main()
while (1)
{
scanf("%d", &n);
if (n == -1)//-1return
if (n == -1)// 结束
return 0;
memset(&w, 0, sizeof(wall) * (n + 1));
w[0].x = 0;