2 条题解

  • 1
    @ 2026-6-6 21:11:15

    手把手教你写这题:

    #include <bits/stdc++.h>//这是万能头文件,新手在写作业时建议把这行改成:#include <iostream>
    using namespace std;//命名空间,可以不写,但写了更简单
    int main(){//主函数,必写
    	double a = 2.3,b = 1.87;//感觉能不写
    	cout << a * b;//意思是显示出2.3 ×1.87的积
    	return 0;//能省略,但比赛必写语句,意为停止程序 
      }
    

    看懂了吗,不懂问我

    • 1
      @ 2026-3-15 19:42:46
      #include<bits/stdc++.h>
      using namespace std;
      const int N=1e3+10;
      const int INF=0x3f3f3f3f;
      
      int main()
      {
          cout <<4.301;
      	return 0;
      }
      
      
      
      • 1

      信息

      ID
      3484
      时间
      1000ms
      内存
      256MiB
      难度
      6
      标签
      递交数
      112
      已通过
      36
      上传者