3 条题解

  • 1
    @ 2025-7-15 9:56:59

    关于“我爱动脑”这件事

    #include <bits/stdc++.h>
    using namespace std;
    int main()
    {
    	double a,b,c;
    	b=9.6*6-9.4*5;
    	c=9.6*6-9.8*5;
    	a=(9.6*6-c-b)/4;
    	printf("%5.2f", a);
    	return 0;
    }
    
    • 0
      @ 2025-4-4 18:37:27

      这题有2种解法,想不到吧! ①

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
      	double a,b,c;
      	b=9.6*6-9.4*5;
      	c=9.6*6-9.8*5;
      	a=(9.6*6-c-b)/4;
      	printf("%5.2f", a);
      	return 0;
      }
      

      以上是动脑子的解法; ②

      #include <bits/stdc++.h>
      using namespace std;
      int main()
      {
      	cout<<" 9.60";
      	return 0;
      }
      

      以上则是不动脑子的解法(可能动了脑子,因为他/她计算了)。 注:②在输出前有一个空格(我合并到一起去了)

      • -2
        @ 2024-11-14 19:41:34
        #include <bits/stdc++.h>
        using namespace std;
        int main()
        {
        	double a,b,c;
        	b=9.6*6-9.4*5;
        	c=9.6*6-9.8*5;
        	a=(9.6*6-c-b)/4;
        	printf("%5.2f", a);
        	return 0;
        }
        
        • 1

        信息

        编号
        2292
        时间
        1000ms
        内存
        256MiB
        难度
        2
        标签
        递交数
        185
        已通过
        55
        上传者