Gửi bài giải
Điểm:
1,00 (OI)
Giới hạn thời gian:
1.0s
Giới hạn bộ nhớ:
256M
Input:
stdin
Output:
stdout
Dạng bài
Ngôn ngữ cho phép
C, C#, C++, Go, Java, Javascript, Kotlin, Pascal, Perl, PyPy, Python, Rust, Scratch
Chúng ta hãy bắt đầu hành trình học lập trình của mình bằng cách giải quyết bài toán kinh điển Hello world.
Mục tiêu của bạn là lập trình để in ra dòng chữ Hello, World! ra màn hình.
Lưu ý: Phải in ra chính xác chữ hoa thường và cả dấu câu nữa nhé.
Để có thể nộp bài, bạn tìm bên phải màn hình nút "Gửi bài giải", vào trang "Nộp bài", chọn ngôn ngữ lập trình và nộp bài. Khi đã nộp bài thành công, hãy thử với bài toán khó hơn một chút là A cộng B nhé!
Sau đây là gợi ý đáp án trong một vài ngôn ngữ thông dụng:
C
#include <stdio.h>
int main() {
printf("Hello, World!\n");
return 0;
}
C++
#include <iostream>
using namespace std;
int main() {
cout << "Hello, World!" << endl;
return 0;
}
Pascal
program helloworld;
begin
writeln('Hello, World!');
end.
Python
print("Hello, World!")
Go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
Perl
print "Hello, World!\n";
Kotlin
fun main(args: Array<String>) {
print("Hello, World!")
}
Rust
fn main() {
println!("Hello, World!");
}
Java
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
C#
class HelloWorld {
public static void Main(string[] args) {
System.Console.WriteLine("Hello, World!");
}
}
Javascript
console.log('Hello, World!');
Scratch
Bình luận
easy demon
avatar camlord à :))
dễ đến nỗi người mới học cũng làm đc
so easy
print("ezez")
print(=)))
include <iostream>
using namespace std;
int main() { cout << "Hello, World!" << endl; return 0; }
include <iostream>
using namespace std;
int main() { cout << "Hello, World!" << endl; return 0; }
include <iostream>
using namespace std;
int main() { cout << "Hello, World!" << endl; return 0; }
include <iostream>
using namespace std;
int main() { cout << "Hello, World!" << endl; return 0; }
ez
hi ae
include <iostream>
using namespace std;
int main() { cout << "Hello, World!" << endl; return 0; }
Insane problem