Two factors#5

Two factors (Discussion)

  1. confident_tesla_867Oct 24, 2026, 4:49 PM

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

  2. Quantum069Mar 12, 2026, 2:27 PM

    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___Jan 31, 2025, 8:14 AM

    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. vbutenkoOct 26, 2024, 1:40 PM

    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_julSep 29, 2024, 8:07 PM
    Screenshot 2024-09-29 230657.png

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

    1. skolodyazhnyySep 29, 2024, 9:25 PM

      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. OmarAlimammadzadeOct 27, 2024, 1:50 PM

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

    3. user151863Jul 2, 2025, 6:55 PM

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

    4. user540733Sep 13, 2025, 2:35 PM

      Julka_jul remove "Enter a quantity of methods:"

    5. jolly_cerf_752May 9, 2026, 7:55 AM

      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)