Hướng dẫn giải của Lập Trình Không Khó


Chỉ dùng lời giải này khi không có ý tưởng, và đừng copy-paste code từ lời giải này. Hãy tôn trọng người ra đề và người viết lời giải.
Nộp một lời giải chính thức trước khi tự giải là một hành động có thể bị ban.

Tác giả: Hieu Nguyen

Đây là bài tập mẫu giúp các bạn làm quen hệ thống, do đó mình sẽ cung cấp lời giải mẫu để các bạn tham khảo.

Ngôn ngữ Scratch

Ngôn ngữ C
#include <stdio.h>
int main() {
  printf("Lap Trinh Khong Kho!");
  return 0;
}
Ngôn ngữ C++
#include <iostream>
using namespace std;
int main() {
  cout << "Lap Trinh Khong Kho!";
  return 0;
}
Ngôn ngữ Java
// Main class name must be `main`

public class main{
    public static void main(String[] args){
        System.out.println("Lap Trinh Khong Kho!");  
    }
}
Ngôn ngữ CSharp
// Hello World! program
namespace HelloWorld
{
    class Hello {         
        static void Main(string[] args)
        {
            System.Console.WriteLine("Lap Trinh Khong Kho!");
        }
    }
}
Ngôn ngữ Javascript
/* 
 * This is a custom version of V8 that adds six functions in order to perform I/O and aid in online judging.
 *
 * * `print(...)`: similar to Python's `print`, prints all argument separated by space followed by new line.
 * * `flush()`: flushes stdout, ensuring everything output by `print()` immediately shows up.
 * * `gets()`: similar to the Ruby equivalent, returns one line of input from `stdin`.
 * * `read(bytes)`: read `bytes` bytes from stdin as an `ArrayBuffer`.
 * * `write(buffer)`: write a typed array, `ArrayBuffer`, or a view of `ArrayBuffer` to stdout.
 * * `quit(code)`: exits the program with `code`.
 * * You can also assign to the global variable `autoflush` to control whether `print()` flushes.
 *
 */
print("Lap Trinh Khong Kho!");
Ngôn ngữ Python
print("Lap Trinh Khong Kho!")

Bình luận

Hãy đọc nội quy trước khi bình luận.


Không có bình luận tại thời điểm này.