Codeforces Round 901 (Div. 2)

Revision en3, by shubham2468, 2023-10-01 13:38:39

"A. Jellyfish and Undertale " A better solution Solution link

Suppose there is no such bug as "a" then the total time for the bomb to explode will be the sum of the tools + b. In the question, we have given "a" so if we get any tool that is greater than "a" then we should add "a" to the vector rather than adding the tool that is greater than "a".

Hope it helps.


  Rev. Lang. By When Δ Comment
en4 English shubham2468 2023-10-05 16:32:17 24
en3 English shubham2468 2023-10-01 13:38:39 0 (published)
en2 English shubham2468 2023-10-01 13:35:03 41
en1 English shubham2468 2023-10-01 13:34:00 503 Initial revision (saved to drafts)