首页 > 其他分享 >1123. 铲雪车

1123. 铲雪车

时间:2022-11-29 22:25:23浏览次数:36  
标签:int 1123 cin long ans 雪车

#include<bits/stdc++.h>
using namespace std;
#define int long long
long double ans=0,a,b,c,d;
signed main(){
    cin>>a>>b;
    while(cin>>a>>b>>c>>d){
        ans+=sqrt((a-c)*(a-c)+(b-d)*(b-d))*2;
    }
    ans=ans/20;
    int t=round(ans/1000.0*60.0);
    cout<<t/60<<":";
    if(t%60<=9) cout<<0;
    cout<<t%60;
    return 0;
}

标签:int,1123,cin,long,ans,雪车
From: https://www.cnblogs.com/liaoyanxu/p/16936888.html

相关文章