5 条题解

  • 1
    @ 2025-6-15 11:02:41

    where is 数据?

    #include<bits/stdc++.h>
    #define int long long
    using namespace std;
    signed main() 
    {
    	double a,b,c;
    	cin>>a>>b>>c;
    	cout<<a*b/1.0/c;
    }
    
    • 0
      @ 2025-3-9 11:27:18

      可用sort排序,默认从小到大,即升序,那就得开数组a,开大小3即可。排完序后求三角形高就是啊a[0]*a[1]/a[2]。注意:得用double

      Code

      #include <bits/stdc++.h>
      using namespace std;
      int main(){
      	double a[3];
      	cin>>a[0]>>a[1]>>a[2];
      	sort(a,a+3);
      	cout<<a[0]*a[1]/a[2]; 
      	return 0;
      } 
      
      • 0
        @ 2024-12-28 22:27:00
        #include<iostream>
        #define int double
        using namespace std;
        int a,b,c;
        signed main(){
        	cin>>a>>b>>c;
        	cout<<a*b*1.0/c;
        }
        
        • 0
          @ 2024-12-28 16:00:09

          消失的数据。

          #include<bits/stdc++.h>
          #define int long long
          #define INF 0x3f3f3f
          using namespace std;
          double a,b,c;
          signed main(){
          	cin>>a>>b>>c;
          	printf("%.1lf",a*b/c);
          	return 0;
          }
          
          • 0
            @ 2024-12-28 11:38:03

            不是哥们 数据呢

            #include<bits/stdc++.h>
            using namespace std;
            int main()
            {
            	int a[3];
            	cin>>a[0]>>a[1]>>a[2];
            	sort(a,a+2);
            	printf("%.1f",a[0]*1.0*a[1]/a[2]);
            	return 0;
            }
            
            • 1

            信息

            ID
            31
            时间
            1000ms
            内存
            128MiB
            难度
            10
            标签
            递交数
            34
            已通过
            0
            上传者