Afinidad
CodeChefOpen on judge ↗
Se tiene una lista “infinita” de números primos donde los primeros 10 primos son: 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, … En un rango ordinal de números primos se desea saber si los números tienen afinidad mayoritaria, minoritaria o absoluta. Si para un conjunto de números hay más números que son iguales o mayores al promedio, se dice que tiene afinidad mayoritaria; si hay menos números que son
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start