Data Structures & AlgorithmsVery hardCodeforces Div2 B-D · ICPC regional

How many ordered pairs (a, b) of integers with a >= 2 and b >= 2 satisfy a * b = 36?

  1. A. 7
  2. B. 8
  3. C. 4
  4. D. 9

Correct answer: A. 7

Divisors of 36 from 2 to 18 pair up in ordered form: 2x18, 3x12, 4x9, 6x6, 9x4, 12x3, 18x2 give 7 ordered pairs. Counting only unordered pairs (second option) gives 4.

More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions

Exams that ask this topic