5 条题解

  • 0
    @ 2023-3-29 20:04:59
    #include<iostream>
    #include<cmath>
    using namespace std;
    int main()
    {
        double n,people,x,y;
        double l,time=0;
        int i;
    
        cin>>n;
        for(i=1; i<=n; i++) 
        {
            cin>>x>>y;
            cin>>people;
            l=sqrt(1.0*x*x+1.0*y*y);
            time+=2*l/50+people*1.5;
        }
        cout<<ceil(time)<<endl;
        return 0;
    }
    
    • -1
      @ 2023-3-29 20:27:19

      #include <iostream> #include <cmath> using namespace std; double ans,num,a,b,n; int main() { cin>>n; for(int i=1;i<=n;i++) { cin>>a>>b>>num; double s=sqrt(aa+bb); ans+=s/502+1.5num; } cout<<ceil(ans); return 0; }

      • -1
        @ 2023-3-29 20:05:22

        #include <iostream> #include <cmath> #include <iomanip> using namespace std; double n , a , b , num; double ans;

        int main() { cin >> n; for(int i = 1; i <= n; i++) { cin >> a >> b >> num;

        double s = sqrt(a*a+b*b) ;
        	
        	ans += s / 50 *2 + 1.5 * num;
        		
        }
        cout <<  ceil(ans);
        return 0;
        

        }

        • -1
          @ 2023-3-29 19:59:01

          #include <stdio.h> #include <iostream> #include<iomanip> #include <cmath> using namespace std; double n, a, b, num ; double ans; int main(){ cin >> n; for( int i=1; i<=n ; i++){ cin >> a >> b >> num; double c= sqrt ( aa+bb); ans += c/502+1.5num;

          }
          cout << ceil(ans) ;
          return 0;
          
          1. }
          • -1
            @ 2023-3-29 19:58:45

            #include <stdio.h> #include <iostream> #include<iomanip> #include <cmath> using namespace std; double n, a, b, num ; double ans; int main(){ cin >> n; for( int i=1; i<=n ; i++){ cin >> a >> b >> num; double c= sqrt ( aa+bb); ans += c/502+1.5num;

            }
            cout << ceil(ans) ;
            return 0;
            
            • [ ] 1.
            • 1

            信息

            ID
            920
            时间
            1000ms
            内存
            128MiB
            难度
            2
            标签
            递交数
            29
            已通过
            21
            上传者