23 条题解

  • 13
    @ 2023-10-6 19:08:20
    其实有固定代码,如下:
    #include<iostream>//万能开头
    using namespace std;
    int main()
    {
        cout<<"hello world";
        return 0;
    }
    //一手交赞,一手交货(代码)
    
    
    
    
    
    //核桃hetao1609095编程
    //水印
    
    • 0
      @ 2024-5-12 12:13:52

      P0000 在线编程区

      完整代码

      #include <iostream>//hetao3097453
      using namespace std;
      int main()
      {
          cout << "hello world";
          return 0;
      }
      
      

      hetao3097453

      2024年5月12日

      • -1
        @ 2023-10-20 20:00:11
        #include <bits/stdc++.h>
        using namespace std;
        signed main()
        {
            cout << "hello world";
            return 0;
        }
        

        跟P00001很像

        • -2
          @ 2024-6-10 15:51:49
          #include <iostream>
          using namespace std;
          int main()
          {
          	cout << "hello world";
          	return 0;
          }
          

          压缩一下:

          #include <iostream>
          using namespace std;int main(){cout << "hello world";return 0;}
          
          • -3
            @ 2024-5-30 13:23:18

            最简代码 `

            #include<iostream> 
            using namespace std;int main(){cout<<"hello world";}
            
            • -3
              @ 2023-8-3 20:08:18

              P0000题解

              image

              不知题目真面目,只缘身在此题中

              题解如下

              #include <iostream>
              using namespace std;
              int main()
              {
                  cout << "hello world";
                  return 0;
              }
              
              

              image

              • -4
                @ 2024-6-8 20:16:31

                #include<iostream> using namespace std; int main() { cout << "hello world"; return 0; }

                • -4
                  @ 2024-5-24 16:57:40
                  #include<iostream>
                  using namespace std;
                  int main()
                  {
                      cout << "hello world";
                      return 0;
                  }
                  
                  • -4
                    @ 2024-4-19 19:55:00
                    #include<iostream>
                    using namespace std;
                    int main()
                    {
                        cout<<"hello world";
                        return 0;
                    }
                    
                    • -4
                      @ 2024-2-20 9:47:40

                      一个极其坑人的题,而且竟然

                      Wrong Answer   0   读取到 hi,应为 hello
                      

                      于是你输出了hello,就变成了

                      Wrong Answer   0   1c1 < hello --- > hello world
                      

                      正确解法(先摆上框架)

                      #include <bits/stdc++.h> //万能头文件
                      using namespace std;
                      int main()
                      {
                          //问题是中间输出什么
                          return 0;
                      }
                      

                      这里你可以尝试多种输出方式,例如

                      cout<<"hello world";
                      printf("hello world");
                      

                      (想写快写的站起来,你觉得有必要吗)

                      • -4
                        @ 2023-12-16 17:20:49

                        来一个奇怪一些的

                        #include<iostream>
                        using namespace std;
                        #define ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ cout
                        #define __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ return
                        #define _________________________________________________________________________________________________________________________________ int
                        _________________________________________________________________________________________________________________________________ main()
                        {
                            ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________<<"hello world";
                            __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ 0;
                        }
                        
                        • -4
                          @ 2023-5-21 20:09:29

                          这道题很坑啊,我以为是进入在线编程区就行,结果等半天也没效果 最后发现是写一个hello world代码……下面是核心代码

                          cout << "hello world" << endl;
                          
                          • -5
                            @ 2024-6-10 20:10:42

                            #include <iostream> using namespace std; int main() { cout << "hello world"; return 0; }

                            • -5
                              @ 2024-5-1 21:36:18
                              #define a using namespace std;
                              #define b int main(){cout<<"hello world";return 0;}
                              #define c <iostream>
                              #include c
                              a
                              b
                              
                              • -5
                                @ 2024-1-13 22:16:50

                                题目都不讲清楚

                                #include <bits/stdc++.h>
                                #define int long long
                                using namespace std;
                                signed main()
                                {
                                	cout<<"hello world";
                                	return 0;
                                }
                                
                                • -5
                                  @ 2023-12-10 21:10:38
                                  #include <bits/stdc++.h> 
                                  using namespace std;
                                  #define ll unsigned long long
                                  int main(){
                                      cout<<"hello world";
                                      return 0;
                                  }
                                  
                                  • -5
                                    @ 2023-11-8 15:09:58
                                    #include <cstdio>
                                    int main(){
                                        printf("hello world");
                                    }
                                    
                                    • -5
                                      @ 2023-8-10 9:58:11

                                      #include <iostream> using namespace std; int main() { cout << "hello world"; return 0; }

                                      • -5
                                        @ 2023-7-28 15:03:39
                                        ; hello_world.asm
                                          BITS 64
                                          org 0x400000
                                        
                                          ehdr:           ; Elf64_Ehdr
                                            db 0x7f, "ELF", 2, 1, 1, 0 ; e_ident
                                            times 8 db 0
                                            dw  2         ; e_type
                                            dw  0x3e      ; e_machine
                                            dd  1         ; e_version
                                            dq  _start    ; e_entry
                                            dq  phdr - $$ ; e_phoff
                                            dq  0         ; e_shoff
                                            dd  0         ; e_flags
                                            dw  ehdrsize  ; e_ehsize
                                            dw  phdrsize  ; e_phentsize
                                          phdr:           ; Elf64_Phdr
                                            dd  1         ; e_phnum      ; p_type
                                        	              ; e_shentsize
                                            dd  5         ; e_shnum      ; p_flags
                                        	              ; e_shstrndx
                                          ehdrsize  equ  $ - ehdr
                                            dq  0         ; p_offset
                                            dq  $$        ; p_vaddr
                                            dq  $$        ; p_paddr
                                            dq  filesize  ; p_filesz
                                            dq  filesize  ; p_memsz
                                            dq  0x1000    ; p_align
                                          phdrsize  equ  $ - phdr
                                          
                                          _start:
                                            ; write "Hello World!" to stdout
                                        	  mov al, 1
                                            mov dl, 13
                                            mov esi, hello
                                            syscall
                                            mov al, 231
                                            syscall
                                        
                                          hello: db "Hello World!", 10 ; 10 is the ASCII code for newline
                                        
                                          filesize  equ  $ - $$
                                        

                                        ps:网上复制的最小halloworld代码(140byte)

                                      • -5
                                        @ 2023-7-20 19:46:40

                                        极其的坑,~一最开始没给要求以为是随便编一个代码,结果2次WA(悲一~

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

                                        信息

                                        ID
                                        64
                                        时间
                                        1000ms
                                        内存
                                        256MiB
                                        难度
                                        7
                                        标签
                                        (无)
                                        递交数
                                        12695
                                        已通过
                                        2944
                                        上传者