Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
38175 yuanhaoxiang 角谷猜想 C++ 解答错误 1 MS 188 KB 390 2024-01-25 15:29:57

Tests(0/1):


#include <stdio.h> #include <math.h> int main() { int n,p,i,re; float x,y,sum=0,dis,temp; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%f %f %d",&x,&y,&p); dis=sqrt(x*x+y*y); temp=dis/50.0; sum=sum+1.5*p+temp*2; } re=sum; if(sum-re>0) { re++; } printf("%d\n",re); return 0; }


测评信息: