10 条题解

  • 2
    @ 2025-2-9 11:12:49

    不解释了,都看得懂

    #include <cstdio>
    int main(){
        puts("Hello,World!");
        return 0;
    }
    • 0
      @ 2025-4-20 18:47:13

      简单题~~ 注意World的W要大写,感叹号是英文模式

      #include<bits/stdc++.h>
      using namespace std;
      int main(){
          cout<<"Hellow,World!";
          return 0;
      }
      
    • 0
      @ 2025-4-13 20:23:01

      核心:先把每个字符转成 ASCII 编码,再次、逐个输出

      /*
      
      */
      #include<bits/stdc++.h>
      #define ll long long
      #define elif else if
      using namespace std;
      const int N=300005;
      
      const char hello_world[12]=
      {'H','e','l','l','o',','
      ,'W','o','r','l','d','!'};
      // 定义字符数组
      
      signed main(){
          
          ios::sync_with_stdio(0);
          cin.tie();
          cout.tie();
          // 关闭输入输出流同步,减少输入输出时间
          
      #ifdef downline_judge
          freopen("helloworld.in","r",stdin);
          freopen("helloworld.out","w",stdout);
      #endif
          // 在本地编译器上打开文件输入输出
          
          const char* p=hello_world;
          // 定义指针变量数组
          
          short chascii[12]={0};
          // ASCII编码数组
          // 由于ASCII编码范围只是从-128~127
          // 所以可以用short
          
          for(int i=0;i<12;i++){
              chascii[i]=(int)hello_world[i];
          }
          // 转化成ASCII编码
          
          for(int i=0;i<12;i++){
              cout<<(char)chascii[i];
          }
          // 将ASCII编码转化成char字符逐个输出
          
          return 0;
          // 完结撒花
      }
      
    • 0
      @ 2025-1-28 20:01:04

      今天给大家发福利,直接带来三种解法:

      print("Hello,World!")
      # 第1种:Python
      
      #include <cstdio>
      int main() {
          printf("Hello,World!");
          return 0;
      }
      // 第2种:C++ cstdio
      
      #include <bits/stdc++.h>
      using namespace std;
      int main() {
          cout << "Hello,World!";
          return 0;
      }
      // 第3种 C++ std
      
      • 0
        @ 2025-1-25 11:42:29

        好吧,发一篇 PHP 题解。

        PHP 中,在 <?php?> 代码标记之外的所有代码都会不经处理直接输出。因此,我们可以提交以下的 PHP 代码直接AC。

        代码:

        Hello,World!
        
        • 0
          @ 2024-12-13 21:40:16

          PHP:

          Hello,World!
          
          • -1
            @ 2024-11-16 21:39:28

            挑战最短代码。

            #include <cstdio>
            main(){puts("Hello,World!");}
            
            
            • -2
              @ 2024-12-4 21:04:55

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

              • -2
                @ 2024-12-1 17:49:53

                #include<bits/stdc++.h> using namespace tsd; int main() { cout<<"Hello,World!"; }

                • -2
                  @ 2024-11-15 20:11:29

                  好简单 不发题解大家也知道 直接cout << "Hello,World!"; 就好了

                  • 1

                  信息

                  ID
                  4452
                  时间
                  1000ms
                  内存
                  128MiB
                  难度
                  1
                  标签
                  (无)
                  递交数
                  1155
                  已通过
                  628
                  上传者