[Làm quen OJ]. Bài 1. Print Hello World !

View as PDF

Submit solution


Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M
Input: stdin
Output: stdout

Author:
Problem source:
28Tech
Problem type
Allowed languages
C, C#, C++, Java, Kotlin, Pascal, PyPy, Python, Scratch

Nhiệm vụ của bạn ở bài tập này rất đơn giản, bạn hãy nhập vào 1 số nguyên x và in ra 3 dòng :

Dòng 1 là số x bạn vừa nhập từ bàn phím

Dòng 2 in ra dòng chữ "Hello World !"

Dòng 3 in ra "28tech C++ programming !"


Đầu vào
  • 1 dòng duy nhất chứa số nguyên x

Giới hạn
  • 1<=x<=10^9

Đầu ra
  • In ra 3 dòng theo yêu cầu

Sample Input 01
5
Sample Output 01
5
Hello World !
28tech C++ programming !

Comments

Please read the guidelines before commenting.



  • 0
    KHOA87  commented on March 9, 2026, 8:16 a.m.

    include<iostream>

    using namespace std;

    int x;

    int main(){ cin >> x; cout << x << endl; cout << "Hello World !" << endl; cout << " 28tech C++ programming !"; return 0; }


  • 0
    KHOA87  commented on March 9, 2026, 8:11 a.m.

    include<iostream>

    using namespace std;

    int x;

    int main(){ cin >> x; cout << x << endl; cout << "Hello World !" << endl; cout << " 28tech C++ programming !"; return 0; }


  • 0
    pvt6_0023  commented on Feb. 28, 2026, 3:10 a.m.

    include <bits/stdc++.h>

    using namespace std;

    define endl "\n"

    int main() { iosbase::syncwith_stdio(false); cin.tie(nullptr); int x;cin>>x;cout<<x<

    return 0;
    

    }


  • 0
    L8_DuongThanhKhiem  commented on Nov. 20, 2025, 2:42 p.m.

    FULL AC:

    #include <bits/stdc++.h>
    using namespace std;
    int x;
    int main(){
        cin >> x;
        cout << x << endl;
        cout << "Hello World !" << endl;
        cout << "28tech C++ programming !";
        return 0;
    }
    

  • 0
    nguyen_cong_quang_385  commented on Sept. 13, 2025, 3:45 a.m.

    x = int(input()) if 1 <= x <= 10**9: print(x) print('Hello World !') print('28tech C++ programming !')


  • -4
    bengokyeuanh99  commented on April 8, 2025, 11:14 a.m.

    def isvalidinput(x: int) -> bool: return 1 <= x <= 10**9

    def solve(): try: x = int(input()) if not isvalidinput(x): raise ValueError print(x) print("Hello World !") print("28tech C++ programming !") except: pass

    if name == "main": solve()


  • 3
    Tunganh9CT  commented on Dec. 22, 2024, 7:45 a.m.

    Code thì có thể debug, nhưng nhiệt huyết thì đừng bao giờ tắt!


  • -6
    viet_CUS482710635  commented on July 24, 2024, 2:37 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -8
    thinh_phuc_2909  commented on July 18, 2024, 5:07 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -3
    thinh_phuc_2909  commented on July 18, 2024, 5:06 a.m.

    using namespace std; int main(){ int x; cin >> x; cout << x << endl; cout << "Hello World !"<< endl; cout << "28tech C++ programming !"<< endl; return 0;

    }


  • -7
    huyen_baby  commented on June 27, 2024, 3:51 p.m.

    This comment is hidden due to too much negative feedback. Show it anyway.