Compare commits
No commits in common. "0db4fdd6b004cc118cfee58f5d1ff2115b752141" and "c2def12c801f2c553992503b0627e8d56512171f" have entirely different histories.
0db4fdd6b0
...
c2def12c80
@ -7,7 +7,6 @@ const double inf = 1e100, EPS = 1e-6;
|
||||
const int W=20;
|
||||
double l,now;
|
||||
int n;
|
||||
//一道墙
|
||||
struct wall
|
||||
{
|
||||
double x,y[6],val[5];
|
||||
@ -34,8 +33,7 @@ int sign(double d)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
return d > 0 ? 1 : -1;
|
||||
else return d>0? 1:-1;
|
||||
}
|
||||
bool ob(int li,int lj,int ri,int rj)
|
||||
{
|
||||
@ -67,8 +65,7 @@ void find(int ii, int jj)
|
||||
w[ii].val[jj]=now;
|
||||
}
|
||||
// printf("(%.0lf,%.0lf)(%.0lf,%.0lf):length:%.3lf,now:%.3lf£¬val:%.3lf\n",w[ii].x,w[ii].y[jj],w[i].x,w[i].y[j],l,now,w[ii].val[jj]);
|
||||
if (i == 0)
|
||||
break;
|
||||
if(i==0) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -79,8 +76,7 @@ void doit()
|
||||
for(int j=1; j<=4; j++)
|
||||
{
|
||||
find(i,j);
|
||||
if (i == n)
|
||||
break;
|
||||
if(i==n) break;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -89,8 +85,7 @@ int main()
|
||||
while(1)
|
||||
{
|
||||
scanf("%d",&n);
|
||||
if (n == -1)// 结束
|
||||
return 0;
|
||||
if(n==-1) return 0;
|
||||
memset(&w,0,sizeof(wall)*(n+1));
|
||||
w[0].x=0;
|
||||
w[0].y[1]=5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user