Dos factores#5

Dos factores (Discusión)

  1. confident_tesla_86724 oct 2026, 16:49

    допоможіть з цією задачею

    1. mindful_bohr_37114 nov 2026, 18:05

      потрібно зробити пошук чисел n починаючи з 2 вгору для яких кількість дільників поділене на 2 і округлене вгору буде рівне k

  2. Quantum06912 mar 2026, 14:27

    Editorial :there are few observation my initial thoughts to compare some factors power with k! cs of unique factors but thats totally wrong later i realised k = ceil(d(n) / 2)where d(n) is number of divisor of n and hopefully we know the formula for calculating which is product of prime (p1+1)*(p2+1)... now we perform DFS(backtracking) over prime exponents.

  3. y___31 ene 2025, 8:14

    Can someone make an editorial for this problem it is really hard i want to figure out the actual code without any specific n condition and cout number

  4. vbutenko26 oct 2024, 13:40

    The tests are weak. My code (#n1mqn3lf993bh4qhloigdsri9s) is 100/100, but for example if k = 32 my output is 9240, however the correct one is 7560. Please add more testcases. (k <= 50, so I don't think it is hard to do)

  5. Julka_jul29 sept 2024, 20:07
    Screenshot 2024-09-29 230657.png

    Why does it show an error every time I just try to use input() ??

    1. skolodyazhnyy29 sept 2024, 21:25

      Julka_jul the error message is "EOF when reading a line", EOF here stands for End-Of-File. This error means you are trying to read input, but there is nothing to read. Check "Input" tab and make sure there is enough data to read.

      Moreover, keep in mind, your program should only output the answer, so the message "Enter quantity of methods:" will be part of the answer.

    2. OmarAlimammadzade27 oct 2024, 13:50

      Julka_jul you should not print anything while reading input. just keep it as int(input())

    3. user1518632 jul 2025, 18:55

      Julka_jul Just write int(input()). You're making a mistake by writing the string inside it.

    4. user54073313 sept 2025, 14:35

      Julka_jul remove "Enter a quantity of methods:"

    5. jolly_cerf_7529 may 2026, 7:55

      Julka_jul you're using int, which expects integers. Even though you will enter an integer, the text: "Enter a quantity of methods:" is not an integer(that is counted in the command line too)