Division

Source: Codeforces 1444A

  1. Read the problem and summarise the task requirements.
  2. We want the biggest divisor of pi that satisfies some other condition.

In this problem, we are concerned with the multiplicative structure of integers.

  1. What framework is typically useful for analysing multiplication and division?

  2. Rewrite the problem in terms of this framework.
  3. Design an algorithm to solve the problem.
  4. Analyse the time complexity of your algorithm and estimate its running time.

  5. Implement this algorithm in code.
  6. Submit your program for judging!