各位大佬们求助啊本蒟蒻40分!!
  • 板块B2066 救援
  • 楼主xibaohe
  • 当前回复3
  • 已保存回复3
  • 发布时间2022/7/31 13:35
  • 上次更新2023/10/27 17:37:34
查看原帖
各位大佬们求助啊本蒟蒻40分!!
601747
xibaohe楼主2022/7/31 13:35

求挑错

感激不尽

#include<bits/stdc++.h>
using namespace std;

double x,y,p,n,ans;

int main(){
    cin>>n;
    while(n--)
    {
        cin>>x>>y>>p;
        ans+=2*(sqrt(x*x+y*y))/50;
        ans+=1.5*p;
    }
    cout<<ceil(ans)<<endl;
    return 0;
}



2022/7/31 13:35
加载中...