23 条题解
-
-4
一个
极其坑人的题,而且竟然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
来一个奇怪一些的
#include<iostream> using namespace std; #define ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ cout #define __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ return #define _________________________________________________________________________________________________________________________________ int _________________________________________________________________________________________________________________________________ main() { ___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________<<"hello world"; __________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________ 0; }
-
-5
; 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)
信息
- ID
- 64
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 7
- 标签
- (无)
- 递交数
- 12695
- 已通过
- 2944
- 上传者