4 条题解

  • -2
    @ 2025-7-6 13:56:58

    首先,题目描述中所说:“输出单词:hello”。 所以需要直接使用C++中的输出函数——— cout(此题也可以用另一个函数printf,不过头文件不可以使用#include,也可以直接使用万能头文件———#include<bits/stdc++.h>)接着在输出时格式为: cout<<"hello"//注意!!!这个是字符串格式!!! 那么代码奉上!

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

    也可以这么写

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

    信息

    ID
    98
    时间
    1000ms
    内存
    256MiB
    难度
    9
    标签
    (无)
    递交数
    190
    已通过
    21
    上传者