Data Structures & AlgorithmsHardCAT · Codeforces Div2 B

How many integers x in [1, 200] are divisible by 4 but not by 6?

  1. A. 35
  2. B. 36
  3. C. 38
  4. D. 34

Correct answer: D. 34

There are 50 multiples of 4 up to 200; the ones also divisible by 6 are the 16 multiples of 12, leaving 34.

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

Exams that ask this topic