Блог пользователя EulerJi

Автор EulerJi, история, 3 года назад, По-английски

I have always wondered how can one quickly solve such cases. Can you guys share your insight. How to solve implementation problems so quickly?

Here is one such problem

https://www.codechef.com/problems/CEILSUM

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

I don’t think its implementation problem. More like basic understanding puzzle. It doesn’t require anything except understanding of division and basic odd/even properties.

»
3 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

You may run a loop between A To B , i.e , A <= X <= B , which helps you to get the value of X . Just write a testing code and run it , get the clue and Implement this clue in your solution .