Free Contest Testing Round 57 - CONCAT2NUM

View as PDF

Submit solution

Points: 0.70 (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.



  • 0
    nguyentanlocefootball  commented on March 3, 2026, 12:47 p.m.

    doc de cuoi vl:))


  • 5
    luuthanhdatbienhoak66  commented on Sept. 23, 2025, 2:37 p.m. edited

    ý tưởng của tui :v

    for i xét từng cái tìm số lượng x đề ghép với a[i] thỏa mãn ta có: l<= x*10^len +a[i]<=r biến đổi sẽ ra (l-a[i])/p<=x<=(r-a[i])/p. độ phức tạp O(T.n.log(n))

    code


  • 3
    dxz  commented on May 24, 2024, 7:15 a.m.

    Em nghĩ là đề nên đính chính là i<=j ạ