Codeforces Round 901 (Div. 2)

Правка en3, от 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. Язык Кто Когда Δ Комментарий
en4 Английский shubham2468 2023-10-05 16:32:17 24
en3 Английский shubham2468 2023-10-01 13:38:39 0 (published)
en2 Английский shubham2468 2023-10-01 13:35:03 41
en1 Английский shubham2468 2023-10-01 13:34:00 503 Initial revision (saved to drafts)