Data Structures & AlgorithmsHardCodeforces Div2 C · GATE CS
What is the sum of the positive divisors of 60 that are at most 10?
- A. 32
- B. 168
- C. 29
- D. 31
Correct answer: D. 31
The divisors of 60 up to 10 are 1, 2, 3, 4, 5, 6, 10, which total 31. Summing all divisors (second option) includes the larger ones.
Practise more Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questionsArrays, Strings, Linked Lists, Stacks, Queues and Hashing: notes and key points
More Arrays, Strings, Linked Lists, Stacks, Queues and Hashing questions
- In how many ways can a product of four matrices A B C D be fully parenthesised (by choosing the order of multiplication)?
- For the histogram [2, 1, 2], each bar i has a maximal rectangle width wi: the number of consecutive bars around i (including i) that are…
- How many distinct value pairs (x, y) with x < y satisfy x + y = 6 among the values in [1, 2, 3, 4, 5, 5, 1]?
- What is the minimum number of cuts needed to split "racecarxyz" into pieces that are all palindromes?
- What is the smallest positive integer n such that 2^n is greater than 100000?
- For [3, 1, 4, 2], split into a non-empty prefix and a non-empty suffix. For each split compute (minimum of prefix) times (maximum of…