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

What is the floor of the square root of the sum of [1000, 2500, 900]?

  1. A. 66
  2. B. 67
  3. C. 65
  4. D. 440

Correct answer: A. 66

The sum is 4400, and floor(sqrt(4400)) = 66 because 66^2 = 4356 and 67^2 = 4489. Floating point square roots can be off by one near perfect squares, so an integer search is preferred.

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

Exams that ask this topic