ICPC Live Archive 7895 - Just in Time URI 2353 – JUST IN TIME


Problem link


A solution in c++








Post a Comment

2 Comments

  1. Yeah we need to find the biggest prime not greater than N, but why??

    ReplyDelete
    Replies
    1. you need to save maximum your balloons, so we know that prime number divisor is only 1 and own number. so you can find maximum prime number 1 to N and you can save maximum your balloons, understand idea ?

      Delete

If you have any doubts, Please let me know