VT01 - Tìm số lớn nhất trong mảng

View as PDF

Submit solution

Points: 1.00 (partial)
Time limit: 1.0s
Memory limit: 256M

Author:
Problem type
Allowed languages
C, C#, C++, Go, Java, Pascal, Perl, PHP, PyPy, Python, Ruby, Rust, Scratch, Swift

Cho mảng số nguyên ~A~ có ~n~ phần tử (~1 \le n \le 10^6~), viết chương trình tìm số lớn nhất trong mảng.

Input

  • Dòng đầu tiên là số nguyên dương ~n~ là số phần tử của mảng
  • Dòng thứ 2 là ~n~ số nguyên là các phần tử của mảng, (~|a_{i}| \le 10^9~)

Output

  • Kết quả của bài toán

Sample

Input #1
3
1 3 2
Output #1
3

Comments

Please read the guidelines before commenting.



  • 2
    Winnguyen102  commented on May 25, 2025, 2:43 a.m.

    n/n n/n


  • 1
    Winnguyen102  commented on May 25, 2025, 2:42 a.m.

    n=int(input()) a=list(map(int,input().split())) print(max(a))

    code python


  • -4
    baobeo123  commented on April 28, 2025, 1:04 a.m.

    anh em cần chú ý có sigma boy !!!


  • 2
    tienthanh10D  commented on March 1, 2025, 6:50 a.m. edit 2

    CODE PYTHON:>>>>>>>>>>>>>>>>>>>>>>>


  • -7
    hohoanghai5042011  commented on Feb. 4, 2025, 9:23 a.m.

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


  • -2
    super_god  commented on Oct. 8, 2024, 2:40 a.m.

    hello ae


    • -3
      wi86lll  commented on March 1, 2025, 8:09 a.m. edit 2

      ko có j


  • -2
    luyencode123  commented on Oct. 20, 2023, 3:10 a.m.

    Test 4, mảng các phần tử là số âm.