Submit solution

Points: 100
Time limit: 4.0s
Memory limit: 512M

Author:
Problem type

Comments


  • 0
    glipR  commented on Oct. 4, 2025, 3:56 a.m.

    Input 1 is specified incorrectly - the image and explanation provided is assuming line 2 reads 3 5 7, rather than 3 5 6. Luckily in both cases the answer is the same.