I submitted my code got wrong answer for test case 0. Then i unlocked the test cases and checked the test case 0 and ran it. My output was perfectly matching with the correct output. Then what is the problem?
A factorial problem test case 0
this is my code: import math for _ in range(int(input())): n,k=map(int,input().split()) ans=0 n2=n factors=[] while(k!=1): z=int(math.sqrt(k)) for i in range(2,z+1): if n%i==0: factors.append(i) k=k//i break else: factors.append(k) k=1 max1=factors[-1] while(n2): n2=n2//max1 ans+=n2 print(ans)
please send link of code
i canβt understand your code due to very poor indentation
paste you code at
click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793
you have to check all testcase
because the input and output which you unlocked may not same in which you fail
for example if your testcase 0 fails then it may be testcase 3 inside