1000000 dan kichik bo'lgan barcha nodir sonlarning kubini topish uchun optimal algoritm quyidagicha bo'ladi: 1. "summa" deb nomlangan o'zgaruvchini nolga boshlang. 2. 1 dan 999999 gacha (barcha 1000000 dan kichik bo'lgan barcha nodir sonlar) har bir takrorlashda 2 bilan takrorlang. 3. Loop ichida, joriy sonni kubga ko'taring va uni "summa" o'zgaruvchisiga qo'shing. 4. Iteratsiyadan so'ng, "summa" o'zgaruvchini natijada qaytaring.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence