problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p02766 | N,K = map(int,input().split())
i=0
while(True):
if K**i>=N:
print(i)
break
i+=1 | N,K = map(int,input().split())
i=0
while(True):
if K**i>N:
print(i)
break
i+=1 | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,379 | 559,380 | u538537141 | python |
p02766 | N,K = map(int,input().split())
N =+ 1
ans = 1
for i in range(1000000):
if K**(ans) < N:
ans += 1
else:
print(ans)
break | N,K = map(int,input().split())
N += 1
ans = 1
for i in range(1000000):
if K**(ans) < N:
ans += 1
else:
print(ans)
break | [
"assignment.value.change",
"expression.operation.unary.arithmetic.remove"
] | 559,381 | 559,382 | u039189422 | python |
p02766 | N,K = map(int,input().split())
ans = 1
for i in range(1000000):
if K**(ans) < N:
ans += 1
else:
print(ans)
break | N,K = map(int,input().split())
N += 1
ans = 1
for i in range(1000000):
if K**(ans) < N:
ans += 1
else:
print(ans)
break | [] | 559,383 | 559,382 | u039189422 | python |
p02766 | n,k=map(int,input())
ans=0
while n>0:
ans+=1
n=n//k
print(ans) | n,k=map(int,input().split())
ans=0
while n>0:
ans+=1
n=n//k
print(ans)
| [
"call.add"
] | 559,388 | 559,389 | u482743994 | python |
p02766 | n,k = map(int,input().split())
#nをk進数で表す
pri_ans = k
ans = 1
while pri_ans < n:
pri_ans *= k
ans += 1
print(ans) | n,k = map(int,input().split())
#nをk進数で表す
pri_ans = k
ans = 1
while pri_ans <= n:
pri_ans *= k
ans += 1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,390 | 559,391 | u866769581 | python |
p02766 | N, K = map(int,input().split())
count = 1
while N > K:
N = N / K
count += 1
print(count) | N, K = map(int,input().split())
count = 1
while N >= K:
N = N / K
count += 1
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,392 | 559,393 | u124499550 | python |
p02766 | n, k = map(int, input(). split())
count = 1
while n > k:
n /= k
count += 1
print(count) | n, k = map(int, input(). split())
count = 1
while n >= k:
n /= k
count += 1
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,396 | 559,397 | u026862065 | python |
p02766 | n,k=map(int, input().split())
t=k
g=1
while t<n:
t=t*k
g+=1
print(g)
| n,k=map(int, input().split())
t=k
g=1
while t-1<n:
t=t*k
g+=1
print(g)
| [
"control_flow.loop.condition.change"
] | 559,400 | 559,401 | u363836311 | python |
p02766 | import math
N, K = map(int, input().split())
print(math.ceil(math.log(N, K)))
| import math
N, K = map(int, input().split())
print(math.floor(math.log(N, K)) + 1)
| [
"misc.opposites",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 559,415 | 559,416 | u332906195 | python |
p02766 | n, r = map(int, input().split())
cnt = 1
i = 0
while True:
if r**i >= n:
if i != 0:
cnt -= 1
break
else:
cnt += 1
i += 1
print(cnt)
| n, r = map(int, input().split())
cnt = 1
i = 0
while True:
if r**i > n:
if i != 0:
cnt -= 1
break
else:
cnt += 1
i += 1
print(cnt)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,417 | 559,418 | u296101474 | python |
p02766 | N,K=map(int,input().split())
c=0
while (N//K)>0:
c = c + 1
N = N//K
print(c) | N,K=map(int,input().split())
c=1
while (N//K)>0:
c = c + 1
N = N//K
print(c)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 559,423 | 559,424 | u779293207 | python |
p02766 | inp=list(map(int,input().strip().split()))[:2]
n,r=inp[0],inp[1]
count=0
while(n > 0):
n=n//k
count+=1
return count | inp=list(map(int,input().strip().split()))[:2]
n,r=inp[0],inp[1]
count=0
while(n > 0):
n=n//r
count+=1
print(count) | [
"assignment.value.change",
"identifier.change",
"expression.operation.binary.change",
"function.return_value.change",
"call.arguments.change"
] | 559,429 | 559,428 | u065994196 | python |
p02766 | p,q= input().split()
a,b =(int(p), int(q))
ans= 0
for i in range(a):
rank = a / (b ** i)
if rank < 1:
print(i)
break | p,q= input().split()
a,b =(int(p), int(q))
ans= 0
for i in range(a + 1):
rank = a / (b ** i)
if rank < 1:
print(i)
break | [
"control_flow.loop.range.bounds.upper.change",
"expression.operation.binary.add"
] | 559,447 | 559,448 | u224554402 | python |
p02766 | p,q= input().split()
a,b =(int(p), int(q))
ans= 0
for i in range(10):
rank = a / (b ** i)
if rank < 1:
print(i)
break | p,q= input().split()
a,b =(int(p), int(q))
ans= 0
for i in range(a + 1):
rank = a / (b ** i)
if rank < 1:
print(i)
break | [
"identifier.replace.add",
"literal.replace.remove",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 559,449 | 559,448 | u224554402 | python |
p02766 | n,k = map(int,input().split())
ans = 0
while n>1:
n /= k ;ans += 1
print(ans) | n,k = map(int,input().split())
n += 1
ans = 0
while n>1:
n /= k ;ans += 1
print(ans) | [] | 559,450 | 559,451 | u602544363 | python |
p02766 | n, k = map(int, input().split())
d = 1
while True:
if n > k ** d:
d += 1
else:
print(d)
exit() | n, k = map(int, input().split())
d = 1
while True:
if n >= k ** d:
d += 1
else:
print(d)
exit() | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,452 | 559,453 | u050876787 | python |
p02766 | a,b=map(int,input().split())
cnt=0
while a>0:
a//=b
cnt+=1
print(x) | a,b=map(int,input().split())
cnt=0
while a>0:
a//=b
cnt+=1
print(cnt) | [
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 559,460 | 559,461 | u068750695 | python |
p02766 | a,b=map(int,input().split())
cnt=0
while a>0:
a//=b
cnt+=1
| a,b=map(int,input().split())
cnt=0
while a>0:
a//=b
cnt+=1
print(cnt) | [
"call.add"
] | 559,462 | 559,461 | u068750695 | python |
p02766 | import math
N, K = map(int,input().split())
print(math.ceil(math.log(N, K))) | import math
N, K = map(int,input().split())
print(int(math.log(N, K)+1)) | [
"call.arguments.change",
"io.output.change"
] | 559,467 | 559,468 | u531813438 | python |
p02766 | n,r = map(int,input().split())
cnt = 0
while n >= 1:
n /= k
cnt += 1
print(cnt) | n,k = map(int,input().split())
cnt = 0
while n >= 1:
n /= k
cnt += 1
print(cnt) | [
"assignment.variable.change",
"identifier.change"
] | 559,476 | 559,477 | u744034042 | python |
p02766 | n, k = map(int, input().split())
counter = 1
while n >= k:
n = int(n / k)
counter += 1
print(n)
print(counter)
| n, k = map(int, input().split())
counter = 1
while n >= k:
n = int(n / k)
counter += 1
print(counter)
| [
"call.remove"
] | 559,484 | 559,485 | u215334265 | python |
p02766 | n, k = map(int, input().split())
counter = 1
while n > k:
n = int(n / k)
counter += 1
print(n)
print(counter)
| n, k = map(int, input().split())
counter = 1
while n >= k:
n = int(n / k)
counter += 1
print(counter)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change",
"call.remove"
] | 559,486 | 559,485 | u215334265 | python |
p02766 | n, k = map(int, input().split())
counter = 1
while not n <= 1:
n = int(n / k)
counter += 1
print(counter)
| n, k = map(int, input().split())
counter = 1
while n >= k:
n = int(n / k)
counter += 1
print(counter)
| [
"control_flow.loop.condition.change"
] | 559,487 | 559,485 | u215334265 | python |
p02766 | def main():
n, k = map(int, input().split())
for i in range(100):
if k ** i < n:
continue
else:
print(i)
return
if __name__ == '__main__':
main()
| def main():
n, k = map(int, input().split())
for i in range(100):
if k ** i <= n:
continue
else:
print(i)
return
if __name__ == '__main__':
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,490 | 559,491 | u355649707 | python |
p02766 | def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
n,k = iim()
ans = 0
while k**ans < n:
ans += 1
print(ans) | def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
def ism():return map(str,input().split())
def isl():return list(map(str,input().split()))
n,k = iim()
ans = 0
while k**ans <= n:
ans += 1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,494 | 559,495 | u021916304 | python |
p02766 | n,k = map(int,input().split())
i = 0
while k**i < n:
i +=1
print(i) | n,k = map(int,input().split())
i = 0
while k**i <= n:
i +=1
print(i) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,501 | 559,502 | u757030836 | python |
p02766 | N,K= map(int, input().split())
A = 0
cnt = -1
if N == 0:
print(1)
else:
while N >= A:
cnt += 1
A = K**(cnt+1)-1
print(cnt+1) | N,K= map(int, input().split())
A = 0
cnt = -1
if N <= K-1:
print(1)
else:
while N > A:
cnt += 1
A = K**(cnt+1)-1
print(cnt+1) | [
"control_flow.branch.if.condition.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,505 | 559,506 | u529106146 | python |
p02766 | N,K=map(int,input().split())
i=0
while N>K**i:
i+=1
print(i) | N,K=map(int,input().split())
i=0
while N>=K**i:
i+=1
print(i) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,507 | 559,508 | u008079810 | python |
p02766 | from math import log,ceil
n,k=map(int,input().split())
print(ceil(log(n,k)))
| from math import log,floor
n,k=map(int,input().split())
print(floor(log(n,k)+1))
| [
"misc.opposites",
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 559,509 | 559,510 | u559936438 | python |
p02766 | n,k =list(map(int,input().split()))
A=0
while True:
n =n//k
A+=1
if n//k==0:
break
print(A) | n,k =list(map(int,input().split()))
A=0
while True:
n =n//k
A+=1
if n==0:
break
print(A) | [
"expression.operation.binary.remove"
] | 559,511 | 559,512 | u231038326 | python |
p02766 | n,k =list(map(int,input().split()))
A=1
while True:
n =n//k
A+=1
if n//k<1:
break
print(A) | n,k =list(map(int,input().split()))
A=0
while True:
n =n//k
A+=1
if n==0:
break
print(A) | [
"literal.number.integer.change",
"assignment.value.change"
] | 559,513 | 559,512 | u231038326 | python |
p02766 | a,b=map(int,input().split())
cnt=1
#if a%b==0:
# cnt=0
while a>=b:
a=a//b
cnt+=1
print(cnt+1)
| a,b=map(int,input().split())
cnt=0
#if a%b==0:
# cnt=0
while a>=b:
a=a//b
cnt+=1
print(cnt+1)
| [
"literal.number.integer.change",
"assignment.value.change"
] | 559,518 | 559,519 | u785066634 | python |
p02766 | N, K = map(int, input().split())
def f(n, k):
if n//k:
return f(n//k, k) + str(n%k)
else:
return str(n%k)
print(f(N, K)) | N, K = map(int, input().split())
def f(n, k):
if n//k:
return f(n//k, k) + str(n%k)
return str(n%k)
print(len(f(N, K))) | [
"call.add",
"call.arguments.change"
] | 559,528 | 559,529 | u055687574 | python |
p02766 | input=input().split()
N=int(input[0])
K=int(input[1])
i=1
while(K**i<N):
i=i+1
print(i) | input=input().split()
N=int(input[0])
K=int(input[1])
i=1
while(K**i<=N):
i=i+1
print(i) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,530 | 559,531 | u764057261 | python |
p02766 | import math
K, N = map(int, input().split())
print(int(math.log(K + 1, N)) + 1) | import math
K, N = map(int, input().split())
print(int(math.log(K, N)) + 1) | [
"expression.operation.binary.remove"
] | 559,534 | 559,535 | u865383026 | python |
p02766 | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a =a+1
print(a)
print(a) | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a =a+1
print(a) | [
"call.remove"
] | 559,536 | 559,537 | u830770242 | python |
p02766 | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a +=a
print(a) | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a =a+1
print(a) | [
"assignment.add"
] | 559,538 | 559,537 | u830770242 | python |
p02766 | N,K=map(int,input().split())
while K <= N:
N = N // K
a +=a
print(a) | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a =a+1
print(a) | [
"assignment.value.change"
] | 559,539 | 559,537 | u830770242 | python |
p02766 | N,K=map(int,input().split())
a = 0
while R <= N:
N = N // R
a +=a
print(a) | N,K=map(int,input().split())
a = 1
while K <= N:
N = N // K
a =a+1
print(a) | [
"literal.number.integer.change",
"assignment.value.change",
"identifier.change",
"control_flow.loop.condition.change",
"expression.operation.binary.change"
] | 559,540 | 559,537 | u830770242 | python |
p02766 | import math
N, K = map(int, input().split())
print(math.ceil(math.log(N, K))) | import math
N, K = map(int, input().split())
print(math.floor(math.log(N, K))+1)
| [
"misc.opposites",
"identifier.change",
"call.arguments.change",
"io.output.change"
] | 559,541 | 559,542 | u729008627 | python |
p02766 | n, k = map(int, input().split())
cnt = 0
while n // k > 0:
cnt += 1
n = n // k
print(cnt) | n, k = map(int, input().split())
cnt = 0
while n > 0:
cnt += 1
n = n // k
print(cnt) | [
"expression.operation.binary.remove"
] | 559,543 | 559,544 | u729535891 | python |
p02766 | def main():
a, b = list(map(int, input().split()))
flag = 1
d = 1
while flag:
if b**d >= a:
flag = 0
else:
d += 1
print(d)
if __name__ == "__main__":
main()
| def main():
a, b = list(map(int, input().split()))
flag = 1
d = 1
while flag:
if b**d > a:
flag = 0
else:
d += 1
print(d)
if __name__ == "__main__":
main()
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,554 | 559,555 | u411353821 | python |
p02766 | N,K=map(int,input().split())
n=1
while True:
if N<=(K**n):
break
n+=1
print(n) | N,K=map(int,input().split())
n=1
while True:
if N<(K**n):
break
n+=1
print(n) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,562 | 559,563 | u639104973 | python |
p02766 | n,k=map(int,input().split())
i=0
while 1:
if k**i >= n:
print(i)
break
i+=1
| n,k=map(int,input().split())
i=0
while 1:
if k**i > n:
print(i)
break
i+=1
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,568 | 559,569 | u909716307 | python |
p02766 | x,y = map(int,input().split())
for i in range(10000):
k = y**i
if k >= x:
break
print(i) | x,y = map(int,input().split())
for i in range(10000):
k = y**i
if k > x:
break
print(i)
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,570 | 559,571 | u594803920 | python |
p02766 | import numpy as np
import math
n,k = str(input()).split()
if int(n) == 0:
print(1)
else:
ans = np.log(int(n))/np.log(int(k))
print(math.ceil(ans)) | import numpy as np
import math
n,k = str(input()).split()
if int(n) == 0:
print(1)
else:
ans = np.log(int(n))/np.log(int(k))
print(int(ans)+1) | [
"call.arguments.change",
"io.output.change"
] | 559,574 | 559,575 | u813993459 | python |
p02766 | NK=list(map(int,input().strip().split()))
N=NK[0]
K=NK[1]
for n in range(1,36):
if N<=K**n:
digit=n
break
print(digit) | NK=list(map(int,input().strip().split()))
N=NK[0]
K=NK[1]
for n in range(1,36):
if N<K**n:
digit=n
break
print(digit) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,584 | 559,585 | u613920660 | python |
p02766 | n, k = map(int, input().split())
m = k
c = 1
while m < n:
m *= k
c += 1
print (c) | n, k = map(int, input().split())
m = k
c = 1
while m-1 < n:
m *= k
c += 1
print (c) | [
"control_flow.loop.condition.change"
] | 559,603 | 559,604 | u215743476 | python |
p02766 | n,k=map(int,input().split())
count=0
while (n/k)>=1:
n/=k
count+=1
print(count) | n,k=map(int,input().split())
count=0
while (n/k)>=1:
n/=k
count+=1
print(count+1) | [
"expression.operation.binary.add"
] | 559,605 | 559,606 | u912672208 | python |
p02766 | N,R=map(int,input().split())
for i in range(N):
if N<R**i:
print(i)
break | N,K=map(int,input().split())
for i in range(N*K):
if N<K**i:
print(i)
break | [
"assignment.variable.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 559,607 | 559,608 | u735175408 | python |
p02766 | N,R=map(int,input().split())
for i in range(N):
if N<=R**i:
print(i)
break | N,K=map(int,input().split())
for i in range(N*K):
if N<K**i:
print(i)
break | [
"assignment.variable.change",
"identifier.change",
"control_flow.loop.for.condition.change"
] | 559,609 | 559,608 | u735175408 | python |
p02766 | n,k = list(map(int,input().split()))
for i in range(100):
if k**1 <= n < k**(i+1):
print(i+1) | n,k = list(map(int,input().split()))
for i in range(100):
if k**i <= n < k**(i+1):
print(i+1) | [
"identifier.replace.add",
"literal.replace.remove",
"control_flow.branch.if.condition.change"
] | 559,610 | 559,611 | u514118270 | python |
p02766 | a,b = list(map(int,input().split()))
for i in range(10):
if b**i <= a < b**(i+1):print(i+1)
| n,k = list(map(int,input().split()))
for i in range(100):
if k**i <= n < k**(i+1):
print(i+1) | [
"assignment.variable.change",
"identifier.change",
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change",
"control_flow.branch.if.condition.change"
] | 559,612 | 559,611 | u514118270 | python |
p02766 | N, K = [int(_) for _ in input().split()]
for a in range(0, 10**9):
N = int(N / K)
if N <= 0:
print(a)
break | N, K = [int(_) for _ in input().split()]
for a in range(1, 10**9):
N = int(N / K)
if N <= 0:
print(a)
break | [
"literal.number.integer.change",
"call.arguments.change",
"control_flow.loop.range.bounds.lower.change"
] | 559,617 | 559,618 | u903699277 | python |
p02766 | N, K = [int(_) for _ in input().split()]
for a in range(1, N):
N = int(N / K)
if N <= 0:
print(a)
break | N, K = [int(_) for _ in input().split()]
for a in range(1, 10**9):
N = int(N / K)
if N <= 0:
print(a)
break | [
"identifier.replace.remove",
"literal.replace.add",
"call.arguments.change",
"control_flow.loop.range.bounds.upper.change"
] | 559,619 | 559,618 | u903699277 | python |
p02766 | N, K = [int(_) for _ in input().split()]
for a in range(10**9):
if K**(a) <= N < K**(i*1):
print(a+1)
break | N, K = [int(_) for _ in input().split()]
for a in range(0, 10**9):
if K**(a) <= N < K**(a+1):
print(a+1)
break | [
"call.arguments.add",
"control_flow.loop.for.condition.change"
] | 559,623 | 559,621 | u903699277 | python |
p02766 | s = input().split()
N = int(s[0])
K = int(s[1])
i = 0
while N > K ** i:
i += 1
ans = i
print(ans) | s = input().split()
N = int(s[0])
K = int(s[1])
i = 0
while N >= K ** i:
i += 1
ans = i
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,630 | 559,631 | u749512407 | python |
p02766 | n, k = map(int, input().split())
digit = 1
while n > pow(k,digit):
digit += 1
print(digit) | n, k = map(int, input().split())
digit = 1
while n >= pow(k,digit):
digit += 1
print(digit) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,640 | 559,641 | u644568755 | python |
p02766 | n, k = map(int, input().split())
digit = 0
while n > pow(k,digit):
digit += 1
print(digit) | n, k = map(int, input().split())
digit = 1
while n >= pow(k,digit):
digit += 1
print(digit) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,642 | 559,641 | u644568755 | python |
p02766 | N, K = map(int, input().split())
result = 0
tmp = 1
while tmp < N:
result += 1
tmp = K ** (result)
print(result)
| N, K = map(int, input().split())
result = 1
tmp = K
while tmp < N:
result += 1
tmp = (K ** (result)) - 1
print(result)
| [
"assignment.remove",
"assignment.add",
"assignment.change"
] | 559,645 | 559,646 | u150664457 | python |
p02766 | n,k = map(int,input().split())
y = k
cnt = 1
while n > k:
k *= y
cnt += 1
print(cnt) | n,k = map(int,input().split())
y = k
cnt = 1
while n >= k:
k *= y
cnt += 1
print(cnt)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,657 | 559,658 | u374784428 | python |
p02766 | N, K = map(int, input().split())
if K == 10:
print(len(str(N)))
else:
res = 1
KK = K
while KK < N:
res += 1
KK *= K
print(res)
| N, K = map(int, input().split())
if K == 10:
print(len(str(N)))
else:
res = 1
KK = K
while KK <= N:
res += 1
KK *= K
print(res)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,659 | 559,660 | u642012866 | python |
p02766 | n,k=list(map(int,input().split()))
count=0
while n>1:
n=n//k
count+=1
print(count) | n,k=list(map(int,input().split()))
count=0
while n>0:
n=n//k
count+=1
print(count) | [
"literal.number.integer.change",
"control_flow.loop.condition.change"
] | 559,663 | 559,664 | u335664637 | python |
p02766 | import sys
input = sys.stdin.readline
N,K = map(int, input().split())
a = 0
count = 0
while a < N:
count+=1
a = K**count
print(count) | import sys
input = sys.stdin.readline
N,K = map(int, input().split())
a = 0
count = 0
while a <= N:
count+=1
a = K**count
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,665 | 559,666 | u656391577 | python |
p02766 | n,k = map(int,input().split())
ans = 1
while n>k:
n = n/k
ans+=1
print(ans) | n,k = map(int,input().split())
ans = 1
while n>=k:
n = n/k
ans+=1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,667 | 559,668 | u137808818 | python |
p02766 | n, k = map(int, input().split())
e=1
while pow(k, e) < n:
e+=1
print(e) | n, k = map(int, input().split())
e=1
while pow(k, e) <= n:
e+=1
print(e) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,669 | 559,670 | u409814604 | python |
p02766 | n, k = map(int, input().split())
e=0
while pow(k, e) < n:
e+=1
print(e) | n, k = map(int, input().split())
e=1
while pow(k, e) <= n:
e+=1
print(e) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,671 | 559,670 | u409814604 | python |
p02766 | N,K=map(int,input().split())
J=K
ans=1
while N>J:
J=J*K
ans+=1
print(ans) | N,K=map(int,input().split())
J=K
ans=1
while N>=J:
J=J*K
ans+=1
print(ans) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,674 | 559,675 | u111652094 | python |
p02766 | N,K=map(int,input().split())
J=K
ans=0
while N>J:
J=J*K
ans+=1
print(ans) | N,K=map(int,input().split())
J=K
ans=1
while N>=J:
J=J*K
ans+=1
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,676 | 559,675 | u111652094 | python |
p02766 | N, K = map(int, input().split())
n = 0
while N > K ** n:
n = n+1
print(n) | N, K = map(int, input().split())
n = 0
while N >= K ** n:
n = n+1
print(n) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,685 | 559,686 | u977490411 | python |
p02766 | # input
N, K = map(int, input().split())
# process
ans = 0
num = N
while num > 0:
num //= K
print(num)
ans += 1
# output
print(ans)
| # input
N, K = map(int, input().split())
# process
ans = 0
num = N
while num > 0:
num //= K
ans += 1
# output
print(ans)
| [
"call.remove"
] | 559,690 | 559,691 | u563676207 | python |
p02766 | n,k = map(int,input().split())
c = 0
while n > 0:
n = n//7
c += 1
print(c)
| n,k = map(int,input().split())
c = 0
while n > 0:
n = n//k
c += 1
print(c) | [
"assignment.value.change",
"identifier.replace.add",
"literal.replace.remove",
"expression.operation.binary.change"
] | 559,692 | 559,693 | u673338219 | python |
p02766 | # import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np
n, k = map(int, input().split())
count=1
base = k
while n > k:
count += 1
k *= base
print(count) | # import math
# import bisect
# import heapq
# from collections import deque
# import numpy as np
n, k = map(int, input().split())
count=1
base = k
while n >= k:
count += 1
k *= base
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,694 | 559,695 | u557565572 | python |
p02766 | n, k = map(int, input().split())
x, ans = k, 1
while x < n: x *= k; ans += 1
print(ans)
| n, k = map(int, input().split())
x, ans = k, 1
while x <= n: x *= k; ans += 1
print(ans)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,702 | 559,703 | u193182854 | python |
p02766 | N, K = map(int, input().split())
ans = 0
while N > K:
N //= K
ans += 1
print(ans) | N, K = map(int, input().split())
ans = 0
while N > 0:
N //= K
ans += 1
print(ans)
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change"
] | 559,704 | 559,705 | u047102107 | python |
p02766 | N, K = map(int, input().split())
ans = 0
while N > 0:
N /= K
ans += 1
print(ans) | N, K = map(int, input().split())
ans = 0
while N > 0:
N //= K
ans += 1
print(ans)
| [
"expression.operator.change"
] | 559,706 | 559,705 | u047102107 | python |
p02766 | N, K = map(int, input().split())
ans = 0
while N > K:
N /= K
ans += 1
print(ans) | N, K = map(int, input().split())
ans = 0
while N > 0:
N //= K
ans += 1
print(ans)
| [
"identifier.replace.remove",
"literal.replace.add",
"control_flow.loop.condition.change",
"expression.operator.change"
] | 559,707 | 559,705 | u047102107 | python |
p02766 | n,k = map(int, input().split())
cnt = 1
while True:
if n <= k:
break
n = n // k
cnt += 1
print(cnt) | n,k = map(int, input().split())
cnt = 1
while True:
if n < k:
break
n = n // k
cnt += 1
print(cnt) | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,717 | 559,716 | u755944418 | python |
p02766 | n, k = map(int, input().split())
tmp = 1
for i in range(100):
tmp = k * tmp
if n < tmp:
print(i)
exit() | n, k = map(int, input().split())
tmp = 1
for i in range(100):
tmp = k * tmp
if n < tmp:
print(i+1)
exit() | [
"expression.operation.binary.add"
] | 559,730 | 559,731 | u524489226 | python |
p02766 | def main():
N, K = [int(_) for _ in input().split()]
i = 0
while True:
N_quotient = N // K
N = N_quotient
if N_quotient != 0:
i += 1
else:
break
print(i)
main() | def main():
N, K = [int(_) for _ in input().split()]
i = 1
while True:
N_quotient = N // K
N = N_quotient
if N != 0:
i += 1
else:
break
print(i)
main() | [
"literal.number.integer.change",
"assignment.value.change",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 559,732 | 559,733 | u571395477 | python |
p02766 | def main():
N, K = list(map(int, input().split()))
i = 0
while K**i < N:
i += 1
print(i)
main() | def main():
N, K = list(map(int, input().split()))
i = 0
while K**i <= N:
i += 1
print(i)
main()
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,751 | 559,752 | u308486530 | python |
p02766 | import sys
input = sys.stdin.readline
n, k = list(map(int, input().split()))
r = 1
while (n > k**r):
r = r + 1
print(r) | import sys
input = sys.stdin.readline
n, k = list(map(int, input().split()))
r = 1
while (n >= k**r):
r = r + 1
print(r) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,755 | 559,756 | u101112282 | python |
p02766 | n, k = map(int, input().split())
ans = []
while n!=0 :
ans.append(n % x)
n = n // x
print(len(ans)) | n, x = map(int, input().split())
ans = []
while n!=0 :
ans.append(n % x)
n = n // x
print(len(ans)) | [
"assignment.variable.change",
"identifier.change"
] | 559,761 | 559,762 | u052221988 | python |
p02766 | import math
n, k = map(int,input().split())
print(math.ceil(math.log(n,k))) | import math
n, k = map(int,input().split())
print(int(math.log(n,k))+1) | [
"call.arguments.change",
"io.output.change"
] | 559,768 | 559,769 | u871352270 | python |
p02766 | N,K=map(int,input().split())
x=0
while True:
if N<=K**x:
print(x)
break
x+=1
| N,K=map(int,input().split())
x=0
while True:
if N<K**x:
print(x)
break
x+=1
| [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,774 | 559,775 | u958053648 | python |
p02766 | n,k = map(int,input().split())
i = 0
if n == 0:
print(0)
else:
while k ** i < n:
i += 1
print(i) | n,k = map(int,input().split())
i = 0
if n == 0:
print(1)
exit()
else:
while k ** i <= n:
i += 1
print(i) | [
"literal.number.integer.change",
"call.arguments.change",
"io.output.change",
"call.add",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,803 | 559,804 | u173178698 | python |
p02766 | a,b=map(int,input().split())
count=1
while a>b:
a=a/b
count+=1
print(count) | a,b=map(int,input().split())
count=1
while a>=b:
a=a/b
count+=1
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,810 | 559,811 | u129961029 | python |
p02766 | from math import *
n, k = map(int, input().split())
print(ceil(log(n, k)))
| from math import *
n, k = map(int, input().split())
print(floor(log(n, k)) + 1)
| [
"misc.opposites",
"identifier.change",
"call.function.change",
"call.arguments.change",
"io.output.change"
] | 559,815 | 559,816 | u555199741 | python |
p02766 | import numpy as np
import math
N, K = map(int, input().split())
ans = math.ceil(np.log(N)/np.log(K))
print(ans) | import numpy as np
import math
N, K = map(int, input().split())
ans = math.floor(np.log(N)/np.log(K))+1
print(ans)
| [
"misc.opposites",
"assignment.value.change",
"identifier.change"
] | 559,821 | 559,822 | u861109991 | python |
p02766 | n, k = map(int, input().split())
ans = 0
for i in range(n):
if k**(i-1) <= n and n < k**i:
ans = i
break
print(ans) | n, k = map(int, input().split())
ans = 1
for i in range(n):
if k**(i-1) <= n and n < k**i:
ans = i
break
print(ans) | [
"literal.number.integer.change",
"assignment.value.change"
] | 559,827 | 559,828 | u843612833 | python |
p02766 | n, k = map(int, input().split())
ans = 0
for i in range(n):
if k**(i-1) < n and n <= k**i:
ans = i
break
print(ans) | n, k = map(int, input().split())
ans = 1
for i in range(n):
if k**(i-1) <= n and n < k**i:
ans = i
break
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,829 | 559,828 | u843612833 | python |
p02766 | n, k = map(int, input().split())
ans = 0
for i in range(n):
if k**(i-1) < n and n < k**i:
ans = i
break
print(ans) | n, k = map(int, input().split())
ans = 1
for i in range(n):
if k**(i-1) <= n and n < k**i:
ans = i
break
print(ans) | [
"literal.number.integer.change",
"assignment.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 559,830 | 559,828 | u843612833 | python |
p02766 | n,k=map(int,input().split())
ans=0
while(n>1):
n//=k; ans+=1
print(ans) | n,k=map(int,input().split())
ans=0
while(n):
n//=k; ans+=1
print(ans) | [] | 559,833 | 559,834 | u373958718 | python |
p02766 | n,k=map(int,input().split())
ans=0
while(n>1):
n/=k; ans+=1
print(ans) | n,k=map(int,input().split())
ans=0
while(n):
n//=k; ans+=1
print(ans) | [
"expression.operator.change"
] | 559,835 | 559,834 | u373958718 | python |
p02766 | n, k = map(int, input().split())
ans = 0
while n > 0:
n /= k
ans += 1
print(ans)
| n, k = map(int, input().split())
ans = 0
while n > 0:
n //= k
ans += 1
print(ans)
| [
"expression.operator.change"
] | 559,842 | 559,843 | u008357982 | python |
p02766 | n, k = map(int, input().split())
ans = 0
while n > 1:
n /= k
ans += 1
print(ans)
| n, k = map(int, input().split())
ans = 0
while n > 0:
n //= k
ans += 1
print(ans)
| [
"literal.number.integer.change",
"control_flow.loop.condition.change",
"expression.operator.change"
] | 559,844 | 559,843 | u008357982 | python |
p02766 | def calculate_num(m, n):
integer = m
base = n
result = ''
digit = 0
while integer > 0:
result += str(integer%base) + result
integer = integer//base
digit = len(result)
return digit
def main():
num = input()
num_list = num.split()
number = int(num_list[0])
base = int(num_list[1])
resul... | def calculate_num(m, n):
integer = m
base = n
result = ''
digit = 0
while integer > 0:
result += str(integer%base)
integer = integer//base
digit = len(result)
return digit
def main():
num = input()
num_list = num.split()
number = int(num_list[0])
base = int(num_list[1])
result = calcu... | [
"expression.operation.binary.remove"
] | 559,860 | 559,861 | u189604332 | python |
p02766 | #!/usr/bin/env python
i = 1
nums = input()
nums = nums.split(' ')
x, y = (int(val) for val in nums)
while x > y:
x = x / y
i += 1
print(i)
| #!/usr/bin/env python
i = 1
nums = input()
nums = nums.split(' ')
x, y = (int(val) for val in nums)
while x >= y:
x = x / y
i += 1
print(i)
| [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,862 | 559,863 | u555291433 | python |
p02766 | #!/usr/bin/env python
i = 1
nums = input()
nums = nums.split(' ')
print(nums)
x, y = (int(val) for val in nums)
while x > y:
x = x / y
i += 1
print(i)
| #!/usr/bin/env python
i = 1
nums = input()
nums = nums.split(' ')
x, y = (int(val) for val in nums)
while x >= y:
x = x / y
i += 1
print(i)
| [
"call.remove",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,864 | 559,863 | u555291433 | python |
p02766 | n,k = map(int,input().split())
count = 1
while(n > k):
count += 1
n /= k
print(count) | n,k = map(int,input().split())
count = 1
while(n >= k):
count += 1
n /= k
print(count) | [
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 559,865 | 559,866 | u244416763 | python |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.