Basecamp
    Home
    Problems
    Contests
    Courses
    Rating
    Posts
    Store
    Discord
Viacheslav_Shevcenko
Sign in
Viacheslav_Shevcenko
Ukraine
Ukraine
Joined Sep 24, 2023
OverviewPosts

Problems18
Submissions19
Thg 12
2020
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Thg 11
Thg 12
2021
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Thg 11
Thg 12
2022
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Thg 11
Thg 12
2023
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Thg 11
Thg 12
2024
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Thg 11
Thg 12
2025
Thg 2
Thg 3
Thg 4
Thg 5
Thg 6
Thg 7
Thg 8
Thg 9
Thg 10
Viacheslav_Shevcenko has joined contest UOI 2025, Day 28 tháng trước
Viacheslav_Shevcenko has joined contest UOI 2025, Day 18 tháng trước
Viacheslav_Shevcenko left a comment in discussion The vouchers (#6)9 tháng trước

Andremaxico How did you manage to get such results? Maybe you misunderstood the problem. Here are a few possible outcomes in the example:

  • Selling first, second, third, then fourth ticket respectively: max(2 - 0, 0) * 37 + max(3 - 1, 0) * 45 + max(1 - 2, 0) * 46 + max(4 - 3, 0) * 30 = 194

  • Selling fourth, third, second, then first ticket respectively:max(4 - 0, 0) * 30 + max(1 - 1, 0) * 46 + max(3 - 2, 0) * 45 + max(2 - 3, 0) * 37 = 165

  • Selling second, first, fourth, then third ticket respectively(the maximum possible result):max(3 - 0, 0) * 45 + max(2 - 1, 0) * 37 + max(4 - 2, 0) * 30 + max(1 - 3, 0) * 46 = 232

Viacheslav_Shevcenko solved problem The vouchers (#6) on 2 attempt9 tháng trước
Viacheslav_Shevcenko solved problem Annihilator Gun (#11727) on first attempt9 tháng trước
Viacheslav_Shevcenko has joined contest Eolymp Cup #29 tháng trước
Viacheslav_Shevcenko has joined contest Eolymp Cup #19 tháng trước
Viacheslav_Shevcenko has joined contest Weekend Practice #12 năm trước
Viacheslav_Shevcenko has joined contest ARIO 2024, Semifinals, 8-9 grades2 năm trước
Viacheslav_Shevcenko has joined contest ARIO 2024, Semifinals, 10-11 grades2 năm trước
Viacheslav_Shevcenko solved problem Degree of symmetry (#19) on first attempt2 năm trước
Viacheslav_Shevcenko solved problem How many times to repeat? (#20) on first attempt2 năm trước
Viacheslav_Shevcenko solved problem Array Partition (#11664) on first attempt2 năm trước