Beginner Free Contest 45 - TRUNGTHU

View as PDF

Submit solution

Points: 0.20 (partial)
Time limit: 1.0s
Memory limit: 512M

Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch

In case the statement didn't load correctly, you can download the statement here: Statement

Lưu ý: các bạn không nhập, xuất dữ liệu bằng file kể cả khi đề bài có yêu cầu. Đọc, ghi dữ liệu được thực hiện ở stdin và stdout.


Comments

Please read the guidelines before commenting.



  • 2
    Cuong_Kaneki  commented on Jan. 28, 2025, 5:21 p.m.

    Bài đầu tiên năm mới hi vọng giúp có một năm code đại cũng ac mặc dù là bài beginner 🐸


  • -1
    vtiendat88  commented on Jan. 15, 2025, 5:09 p.m.

    def banh(n , k): tong = sum(n) dem = len(n) while tong < k: tong += min(n) dem += 1 dem -= 1 return dem if name == 'main': j , k = map(int,input().split()) n = [] for _ in range(j): n.append(int(input())) print(banh(n,k)) sao code ir nhi


  • -1
    venota_2009  commented on Jan. 25, 2024, 3:37 a.m.

    n, c = [int(i) for i in input().split()] val = [] for i in range(n): k = int(input()) val.append(k) val.sort() a = sum(val) res = n ress = c - a while ress >= val[0]: res += 1 ress -= val[0] if ress < val[0]: print(res) break

    loi IR code nay dc luon a-_-


  • 0
    ving3011  commented on June 26, 2023, 4:09 p.m.

    ví dụ lừa thật, sai 2 lần mới nhận ra :))


  • -8
    ntkiet  commented on Sept. 7, 2022, 2:53 p.m.

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