摘要:
数据http://files.cnblogs.com/htfy/data.zip简要题解桌球碰撞纯模拟,注意一开始就在袋口和v=0的情况。v和坐标可以是小数。为保险起见最好用extended/double类型。program prob1;var ans:array[0..6,0..600] of longint; n,i,j:longint; a0,r0,px,py,vx,vy,left,t,newp:extended; flag:boolean;function dist(x1,y1,x2,y2:extended):extended;inline;begin exit( sqrt(sqr(x 阅读全文