0001 - Hello world

欢迎来到编程的世界

千里之行,始于足下。编程之行,始于Hello World!

题目

0001 - Hello world
难度级别:A; 运行时间限制:1000ms; 运行空间限制:256000KB; 代码长度限制:2000000B
题目描述
初次尝试进入编程的世界,让我们来打个招呼吧!编写程序输出"Hello world"。完全按照样例输出即可。
输入样例
输出样例
Hello world

题解

思路

按照样例输出即可
不过就光输出就有很多种格式

比如

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

两种方式

事实上在这里使用两种写法都可以(因为玄学的测评机 ,所以冲榜几乎不可能了)
两者速度差距也非常的小,如下图:

可能两者只有代码长度的区别了吧

完整代码

#include<bits/stdc++.h>//请牢记这个万能头文件
using namespace std;
int main()
{
	printf("Hello world");
	return 0;
}
#include<bits/stdc++.h>
using namespace std;
int main()
{
	cout<<"Hello world";
	return 0;
}

注意事项

编写代码的时候,建议直接复制输出样例,避免打错【滑稽】
毕竟,谁知道

Hello World

Hello world

Hello world!

Hello World!

的区别呢…

写在后面

真の蒟蒻在此,写博客的过程是真的学习的过程,大佬勿喷,欢迎交流。(虽然我不知道有多少人会看)
ps:写博客是因为在百度上 搜答案 学习时搜到了这位大佬 的博客

猜你喜欢

转载自blog.csdn.net/YooLcx/article/details/85018974