PersonalCorpus 版 (精华区)

148268 11:03:51
28 Feb 2002 Bozhang,HIT,P.R.China 1020 Pascal Accepted 0.02 sec 53K


var
    i,n:byte;
    res,r,s,t,u,v,w:real;
begin
    readln(n,r);
    res:=r*3.1416*2;
    readln(r,s);
    t:=r; u:=s;
    for i:=2 to n do begin
        readln(v,w);
        res:=res+sqrt(sqr(v-t)+sqr(w-u));
        t:=v; u:=w;
    end;
    writeln(res+sqrt(sqr(t-r)+sqr(u-s)):0:2);
end.
[百宝箱] [返回首页] [上级目录] [根目录] [返回顶部] [刷新] [返回]
Powered by KBS BBS 2.0 (http://dev.kcn.cn)
页面执行时间:1.985毫秒