Datasets:

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
9 values
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
p02766
n,k = map(int, input().split()) for i in range(1,10): if n < k ** i: print(i) break
n,k = map(int, input().split()) for i in range(1,50): if n < k ** i: print(i) break
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
559,873
559,874
u634046173
python
p02766
n,k = map(int, input().split()) for i in range(1,10): if n <= k ** i - 1: print(i) break
n,k = map(int, input().split()) for i in range(1,50): if n < k ** i: print(i) break
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
559,875
559,874
u634046173
python
p02766
n,k = map(int, input().split()) for i in range(1,10): if n <= k ** i - 1: print(i) break
n,k = map(int, input().split()) for i in range(1,50): if n < k ** i: print(i) break
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
559,876
559,874
u634046173
python
p02766
n,k = map(int, input().split()) for i in range(1,10): if n <= k ** i: print(i +1) break
n,k = map(int, input().split()) for i in range(1,50): if n < k ** i: print(i) break
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change", "expression.operation.binary.remove" ]
559,877
559,874
u634046173
python
p02766
n,k = map(int, input().split()) digits = 0 while n: digits += 1 n//=10 print(digits)
n, k = map(int, input().split()) digits = 0 while n: digits += 1 n //= k print(digits)
[ "identifier.replace.add", "literal.replace.remove" ]
559,887
559,888
u974792613
python
p02766
rc = list(map(int, input().split())) digit = 1 while src[1] ** digit - 1 < src[0]: digit += 1 print(digit)
src = list(map(int, input().split())) digit = 1 while src[1] ** digit - 1 < src[0]: digit += 1 print(digit)
[ "assignment.variable.change", "identifier.change" ]
559,889
559,890
u383018986
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,900
559,901
u811000506
python
p02766
import math def main(n, k): print(math.ceil(math.log(n, k))) if __name__ == "__main__": n, k = map(int, input().split()) main(n, k)
import math def main(n, k): print(math.floor(math.log(n, k) + 1)) if __name__ == "__main__": n, k = map(int, input().split()) main(n, k)
[ "misc.opposites", "identifier.change", "call.arguments.change", "io.output.change" ]
559,908
559,909
u872692113
python
p02766
from math import log, ceil import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): N,K = map(int, readline().split()) print(ceil(log(N, K))) if __name__ == "__main__": main()
from math import log, ceil import sys read = sys.stdin.read readline = sys.stdin.readline readlines = sys.stdin.readlines def main(): N,K = map(int, readline().split()) print(int(log(N, K)) + 1) if __name__ == "__main__": main()
[ "identifier.change", "call.function.change", "call.arguments.change", "io.output.change" ]
559,912
559,913
u638456847
python
p02766
n, k = map(int, input().split()) i = 1 while n > k**i: i += 1 print(i)
n, k = map(int, input().split()) i = 1 while n >= k**i: i += 1 print(i)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
559,916
559,917
u272075541
python
p02766
n, k = map(int, input().split()) ans = 0 def base_10_to_n(x, n): if int(x / n): return base_10_to_n(int(x / n), n) + str(X % n) return str(x % n) print(len(str(base_10_to_n(n, k))))
n, k = map(int, input().split()) ans = 0 def base_10_to_n(x, n): if int(x / n): return base_10_to_n(int(x / n), n) + str(x % n) return str(x % n) print(len(str(base_10_to_n(n, k))))
[ "identifier.change", "call.arguments.change", "function.return_value.change", "expression.operation.binary.change" ]
559,920
559,921
u428132025
python
p02766
s = list(map(int, input().split())) keta=1 while s[0]>s[1]: s[0]=s[0]/s[1] keta+=1 print(keta)
s = list(map(int, input().split())) keta=1 while s[0]>=s[1]: s[0]=s[0]/s[1] keta+=1 print(keta)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
559,922
559,923
u010870870
python
p02766
N,K=map(int, input().split()) for i in range(10): if K**i<N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "control_flow.loop.for.condition.change", "control_flow.branch.if.condition.change" ]
559,932
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(9999): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,934
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(8800): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,935
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(7500): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,936
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(5000): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,937
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(10000): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,939
559,933
u068666298
python
p02766
N,K=map(int, input().split()) for i in range(10): if K**i<=N<=K**(i+1): print(i+1)
N,K=map(int, input().split()) for i in range(8000): if K**i<=N<K**(i+1): print(i+1)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,940
559,933
u068666298
python
p02766
n, k = map(int, input().split()) count = 1 for i in range(1, 100): if n / (k ** i) > 1: count += 1 else: break print(count)
n, k = map(int, input().split()) count = 1 for i in range(1, 100): if n / (k ** i) >= 1: count += 1 else: break print(count)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,946
559,947
u931118906
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,950
559,951
u030410515
python
p02766
n, k = (int(x) for x in input().split()) a = 0 while True: if k ** a >= n: break else: a += 1 if a == 0: a += 1 print(a)
n, k = (int(x) for x in input().split()) a = 0 while True: if k ** a > n: break else: a += 1 if a == 0: a += 1 print(a)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,952
559,953
u454524105
python
p02766
N, K = map(int, input().split()) ans = 1 while K ** ans < N: ans += 1 print(ans)
N, K = map(int, input().split()) ans = 1 while K ** ans <= N: ans += 1 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
559,954
559,955
u866124363
python
p02766
N, K=map(int, input().split()) i=1 while K**i<N: i+=1 print(i)
N, K=map(int, input().split()) i=1 while K**i-1<N: i+=1 print(i)
[ "control_flow.loop.condition.change" ]
559,957
559,958
u095021077
python
p02766
n,k = map(int,input().split()) answer = 0 flag = True while True: answer += 1 if k**answer>=n: break print(answer)
n,k = map(int,input().split()) answer = 0 while True: answer += 1 if k**answer>n: break print(answer)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,984
559,985
u672316981
python
p02766
N, K = map(int, input().split()) ans = 1 tmp = 1 while N >= tmp: tmp = tmp * K ans += 1 print(tmp) print(ans-1)
N, K = map(int, input().split()) ans = 1 tmp = 1 while N >= tmp: tmp = tmp * K ans += 1 # print(tmp) print(ans-1)
[ "call.remove" ]
559,991
559,992
u759938562
python
p02766
N, K = map(int, input().split()) ans = 1 tmp = 1 while N > tmp: tmp = tmp * K ans += 1 # print(tmp) print(ans-1)
N, K = map(int, input().split()) ans = 1 tmp = 1 while N >= tmp: tmp = tmp * K ans += 1 # print(tmp) print(ans-1)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
559,993
559,992
u759938562
python
p02766
N,R=map(int,input().split()) for i in range(N): if R**i>=N: print(i) break
N,R=map(int,input().split()) for i in range(1000000000): if R**i>N: print(i) break
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
559,997
559,998
u690037900
python
p02766
N,R=map(int,input().split()) for i in range(N): if R**i>N: print(i) break
N,R=map(int,input().split()) for i in range(1000000000): if R**i>N: print(i) break
[ "identifier.replace.remove", "literal.replace.add", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
559,999
559,998
u690037900
python
p02766
N, K = map(int, input().split()) i = N/K cnt = 1 while i > 1: i = i/K cnt += 1 print(cnt)
N, K = map(int, input().split()) i = N/K cnt = 1 while i >= 1: i = i/K cnt += 1 print(cnt)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,002
560,003
u489124637
python
p02766
import math n,k = map(int, input().split()) f = math.log(n, k) print(math.ceil(f))
import math n,k = map(int, input().split()) f = math.log(n, k) print(math.floor(f) + 1)
[ "misc.opposites", "identifier.change", "call.arguments.change", "io.output.change" ]
560,006
560,007
u937239245
python
p02766
N, K = map(int, input().split()) count = 0 N_K = 1 while N > N_K: count += 1 N_K *= K print(count)
N, K = map(int, input().split()) count = 0 N_K = 1 while N >= N_K: count += 1 N_K *= K print(count)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,012
560,013
u618002097
python
p02766
#!/usr/bin/env python3 def main(): n, k = map(int, input().split()) i = 1 while k ** i < n: i += 1 print(i) main()
#!/usr/bin/env python3 def main(): n, k = map(int, input().split()) i = 1 while k ** i <= n: i += 1 print(i) main()
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,025
560,026
u388927326
python
p02766
import sys input = sys.stdin.readline N, K = map(int, input().split()) d = 0 while N: N //= 2 d += 1 print(d)
import sys input = sys.stdin.readline N, K = map(int, input().split()) d = 0 while N: N //= K d += 1 print(d)
[ "identifier.replace.add", "literal.replace.remove" ]
560,029
560,030
u371385198
python
p02766
import sys input = sys.stdin.readline N, K = map(int, input().split()) d = 1 while N: N //= 2 d += 1 print(d)
import sys input = sys.stdin.readline N, K = map(int, input().split()) d = 0 while N: N //= K d += 1 print(d)
[ "literal.number.integer.change", "assignment.value.change", "identifier.replace.add", "literal.replace.remove" ]
560,031
560,030
u371385198
python
p02766
import math N, K = map(int, input().split()) ans = math.floar(1 + math.log(N)/math.log(K)) print(ans)
import math N, K = map(int, input().split()) ans = math.floor(1 + math.log(N)/math.log(K)) print(ans)
[ "assignment.value.change", "identifier.change" ]
560,036
560,037
u922449550
python
p02766
import math N, K = map(int, input().split()) ans = math.ceil(math.log(N)/math.log(K)) print(ans)
import math N, K = map(int, input().split()) ans = math.floor(1 + math.log(N)/math.log(K)) print(ans)
[ "misc.opposites", "assignment.value.change", "identifier.change" ]
560,038
560,037
u922449550
python
p02766
import sys def main(): # sys.stdin = open('input156b.txt') n, k = map(int, input().split()) ans = 0 m = 1 while n > m: m *= k ans += 1 print(ans) if __name__ == '__main__': main()
import sys def main(): # sys.stdin = open('input156b.txt') n, k = map(int, input().split()) ans = 0 m = 1 while n >= m: m *= k ans += 1 print(ans) if __name__ == '__main__': main()
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,041
560,042
u946433121
python
p02766
N,K = map(int,input().split()) c = 1 s = 1 while(s<N): s *= K c += 1 print(c)
N,K = map(int,input().split()) c = 0 s = 1 while(s<=N): s *= K c += 1 print(c)
[ "literal.number.integer.change", "assignment.value.change", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,047
560,048
u201387466
python
p02766
def Digits(N, K): if not N: return 1 digits = 0 while not N: N = N // K digits += 1 return digits N, K = map(int, input().split()) print (Digits(N, K))
def Digits(N, K): if not N: return 1 digits = 0 while N: N = N // K digits += 1 return digits N, K = map(int, input().split()) print (Digits(N, K))
[ "control_flow.loop.condition.change" ]
560,056
560,057
u243061947
python
p02766
def Digits(N, K): if N: return 1 digits = 0 while N: N = N // K digits += 1 return digits N, K = map(int, input().split()) print (Digits(N, K))
def Digits(N, K): if not N: return 1 digits = 0 while N: N = N // K digits += 1 return digits N, K = map(int, input().split()) print (Digits(N, K))
[ "control_flow.branch.if.condition.change" ]
560,058
560,057
u243061947
python
p02766
a,b=map(int,input().split()) ans=1 while 1: if a==0: break a//=b ans+=1 print(ans)
a,b=map(int,input().split()) ans=0 while 1: if a==0: break a//=b ans+=1 print(ans)
[ "literal.number.integer.change", "assignment.value.change" ]
560,061
560,062
u859897687
python
p02766
import sys sys.setrecursionlimit(12345678) import itertools from collections import Counter from collections import defaultdict from collections import deque import bisect from heapq import heappush, heappop def main(): n, k = map(int, input().split()) a = 0 while n > 0: a += 1 n /= k ...
import sys sys.setrecursionlimit(12345678) import itertools from collections import Counter from collections import defaultdict from collections import deque import bisect from heapq import heappush, heappop def main(): n, k = map(int, input().split()) a = 0 while n > 0: a += 1 n = n // k ...
[ "assignment.value.change" ]
560,063
560,064
u374103100
python
p02766
N, M = map(int, input().split()) X = int(M) ans = 1 while N > X: ans += 1 X = X * M print(ans)
N, M = map(int, input().split()) X = int(M) ans = 1 while N >= X: ans += 1 X = X * M print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,076
560,077
u389151317
python
p02766
n,k=map(int,input().split()) res=0 while(n>k): #print(n) n/=k res+=1 print(res+1)
n,k=map(int,input().split()) res=0 while(n>=k): #print(n) n/=k res+=1 print(res+1)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,080
560,081
u639343026
python
p02766
n,k = (int(_) for _ in input().split()) ans = 0 a = 1 while n>a: a = a*k ans+=1 print(ans)
n,k = (int(i) for i in input().split()) ans = 0 a = 1 while n>=a: a = a*k ans+=1 print(ans)
[ "assignment.value.change", "identifier.change", "call.arguments.change", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,089
560,090
u811068179
python
p02766
n, k = map(int, input().split()) r = 1 comp = k while 1: if comp >= n: break r += 1 comp = k ** r print(r)
n, k = map(int, input().split()) r = 1 comp = k while 1: if comp > n: break r += 1 comp = k ** r print(r)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,095
560,096
u534450736
python
p02766
n,k=map(int,input().split()) ans=0 while k**ans<n: ans+=1 print(ans)
n,k=map(int,input().split()) ans=0 while k**ans<=n: ans+=1 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,102
560,103
u350248178
python
p02766
n,m = map(int,input().split()) ct = 0 while n > 0: ct+=1 n//=k print(ct)
n,m = map(int,input().split()) ct = 0 while n > 0: ct+=1 n//=m print(ct)
[ "identifier.change" ]
560,110
560,111
u624075921
python
p02766
n, k = (int(z) for z in input().split()) ans = 0 while n: n /= k ans += 1 print(ans)
n, k = (int(z) for z in input().split()) ans = 0 while n: n //= k ans += 1 print(ans)
[ "expression.operator.change" ]
560,130
560,131
u098510720
python
p02766
n,k = map(int,input().split()) d = k ans = 1 while True: if k >= n: break ans += 1 k *= d print(ans)
n,k = map(int,input().split()) d = k ans = 1 while True: if k > n: break ans += 1 k *= d print(ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,135
560,136
u007018214
python
p02766
n,k=map(int,input().split()) i=1 while n>0: i+=1 n//=k print(i)
n,k=map(int,input().split()) i=0 while n>0: i+=1 n//=k print(i)
[ "literal.number.integer.change", "assignment.value.change" ]
560,139
560,140
u393512980
python
p02766
N, K = map(int, input().split()) ans = 0 while N>(K**ans): ans += 1 print(ans)
N, K = map(int, input().split()) ans = 0 while N >= (K**ans): ans += 1 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,146
560,147
u141786930
python
p02766
N,K = map(int,input().split()) def Base_10_to_n(X, n): if (int(X/n)): return Base_10_to_n(int(X/n), n)+str(X%n) return str(X%n) print(Base_10_to_n(N,K))
N,K = map(int,input().split()) def Base_10_to_n(X, n): if (int(X/n)): return Base_10_to_n(int(X/n), n)+str(X%n) return str(X%n) print(len(Base_10_to_n(N,K)))
[ "call.arguments.add", "call.arguments.change" ]
560,150
560,151
u449697619
python
p02766
n, k = map(int, input().split()) cnt = 1 while True: if n <= k**cnt: break cnt += 1 print(cnt)
n, k = map(int, input().split()) cnt = 1 while True: if n <= k**cnt - 1: break cnt += 1 print(cnt)
[ "control_flow.branch.if.condition.change" ]
560,154
560,155
u580372796
python
p02766
n, k = map(int, input().split()) cnt = 1 while True: if n <= k**cnt + 1: break cnt += 1 print(cnt)
n, k = map(int, input().split()) cnt = 1 while True: if n <= k**cnt - 1: break cnt += 1 print(cnt)
[ "misc.opposites", "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
560,156
560,155
u580372796
python
p02766
import numpy as np N, K = map(int, input().split()) res = 0 M = N while M > 1: M /= K res += 1 print(res)
import numpy as np N, K = map(int, input().split()) res = 0 M = N while M >= 1: M /= K res += 1 print(res)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,160
560,161
u978933721
python
p02766
import numpy as np N, K = map(int, input().split()) res = 0 M = N while M > 1: M /= 3 res += 1 print(res)
import numpy as np N, K = map(int, input().split()) res = 0 M = N while M >= 1: M /= K res += 1 print(res)
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "identifier.replace.add", "literal.replace.remove" ]
560,162
560,161
u978933721
python
p02766
n,k=map(int,input().split()) l=[] if k<=9 : while True: a=n%k l.append(a) n//=k if n<k : l.append(n) break print(len(l)) else: print(len(str(n)))
n,k=map(int,input().split()) l=[] if k<=9 : while True: a=n%k if n>=k: l.append(a) n//=k if n<k : l.append(n) break print(len(l)) else: print(len(str(n)))
[ "control_flow.branch.if.add" ]
560,167
560,168
u629607744
python
p02766
import math N, K = map(int, input().split(' ')) x = 0 while True: if N <= math.pow(K, x): print(x) break x += 1
import math N, K = map(int, input().split(' ')) x = 0 while True: if N < math.pow(K, x): print(x) break x += 1
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,169
560,170
u004423772
python
p02766
N, K = map(int, input().split()) ans = 1 while N > K ** ans: ans += 1 print(ans)
N, K = map(int, input().split()) ans = 1 while N >= K ** ans: ans += 1 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,174
560,175
u553987207
python
p02766
N, K = map(int, input().split()) count = 0 while N > K ** count: count += 1 print(count)
N, K = map(int, input().split()) count = 0 while N >= K ** count: count += 1 print(count)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,176
560,177
u666476759
python
p02766
N, K = map(int, input().split()) i = 0 while i <= 100000: if N <= K ** i: print(i) break else: i += 1
N, K = map(int, input().split()) i = 0 while i <= 100000000: if N < K ** i: print(i) break else: i += 1
[ "literal.number.integer.change", "control_flow.loop.condition.change", "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,178
560,179
u352402050
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" ]
560,190
560,191
u163529815
python
p02766
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(20): if a <= b ** i - 1: digit = i break print(digit)
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(100): if a <= b ** i - 1: digit = i break print(digit)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change" ]
560,192
560,193
u646818123
python
p02766
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(1000): if a <= b ** i: digit = i break print(digit)
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(100): if a <= b ** i - 1: digit = i break print(digit)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
560,194
560,193
u646818123
python
p02766
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(20): if a <= b ** i: digit = i break print(digit)
a, b = input().split() a, b = int(a), int(b) digit = 0 for i in range(100): if a <= b ** i - 1: digit = i break print(digit)
[ "literal.number.integer.change", "call.arguments.change", "control_flow.loop.range.bounds.upper.change", "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change", "misc.off_by_one" ]
560,195
560,193
u646818123
python
p02766
N, K = map(int, input().split()) ans = '' while N >= K: ans = str(N % K) + ans N = N // K print(ans) ans = str(N) + ans print(len(ans))
N, K = map(int, input().split()) ans = '' while N >= K: ans = str(N % K) + ans N = N // K ans = str(N) + ans print(len(ans))
[ "call.remove" ]
560,196
560,197
u325282913
python
p02766
N, K = map(int, input().split()) for i in range(100): if K ** i >= N: Ans = i break print(Ans)
N, K = map(int, input().split()) for i in range(100): if K ** i > N: Ans = i break print(Ans)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,204
560,205
u161712560
python
p02766
def Base_10_to_n(X, n): if (int(X/n)): return Base_10_to_n(int(X/n), n)+str(X%n) return str(X%n) N,K = map(int,imput().split()) A = Base_10_to_n(N, K) print(len(A))
def Base_10_to_n(X, n): if (int(X/n)): return Base_10_to_n(int(X/n), n)+str(X%n) return str(X%n) N,K = map(int,input().split()) A = Base_10_to_n(N, K) print(len(A))
[ "assignment.value.change", "identifier.change", "call.function.change", "call.arguments.change" ]
560,208
560,209
u094214579
python
p02766
import fractions s = input().split() n, k = int(s[0]), int(s[1]) ans = int(fractions.log(n, k) + 1.0) print(ans)
import math s = input().split() n, k = int(s[0]), int(s[1]) ans = int(math.log(n, k) + 1.0) print(ans)
[ "identifier.change", "assignment.value.change", "call.arguments.change", "expression.operation.binary.change" ]
560,216
560,217
u693945629
python
p02766
s = input().split() n = int(s[0]) k = int(s[1]) i = 1 while k ** i < n: i += 1 print(i)
s = input().split() n = int(s[0]) k = int(s[1]) i = 1 while k ** i <= n: i += 1 print(i)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,218
560,219
u229156891
python
p02766
s = input().split() n = int(s[0]) k = int(s[1]) i = 0 while k ** i < n: i += 1 print(i)
s = input().split() n = int(s[0]) k = int(s[1]) i = 1 while k ** i <= n: i += 1 print(i)
[ "literal.number.integer.change", "assignment.value.change", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,220
560,219
u229156891
python
p02766
import sys [N,K] = [int(s) for s in sys.stdin.read().split()] #リスト作成 a = 0 l = 1 while l != 0: if N > K**a: a += 1 else: l = 0 print(a)
import sys [N,K] = [int(s) for s in sys.stdin.read().split()] #リスト作成 a = 0 l = 1 while l != 0: if N >= K**a: a += 1 else: l = 0 print(a)
[ "expression.operator.compare.change", "control_flow.branch.if.condition.change" ]
560,224
560,225
u267035391
python
p02766
N, K = map(int, input().split()) T = 0 while T != 0: N = N // K T += 1 print(T)
N, K = map(int, input().split()) T = 0 while N > 0: N = N // K T += 1 print(T)
[]
560,242
560,243
u508934152
python
p02766
n,k=map(int,input().split()) for i in range(100): if k**i>n: print(i+1) break
n,k=map(int,input().split()) for i in range(100): if k**i>n: print(i) break
[ "expression.operation.binary.remove" ]
560,248
560,249
u905582793
python
p02766
N, K = map(int, input().split()) ans = 0 while K ** ans < N : ans += 1 print(ans)
N, K = map(int, input().split()) ans = 1 while K ** ans <= N : ans += 1 print(ans)
[ "literal.number.integer.change", "assignment.value.change", "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,252
560,253
u049979154
python
p02766
N, K = map(int, input().split()) ans = 1 while K ** ans < N : ans += 1 print(ans)
N, K = map(int, input().split()) ans = 1 while K ** ans <= N : ans += 1 print(ans)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,254
560,253
u049979154
python
p02766
def main(): n, k = map(int, input().split(" ")) smaller = True index = 0 while (smaller): index+=1 smaller = n > k ** index print(index) if __name__ == "__main__": main()
def main(): n, k = map(int, input().split(" ")) smaller = True index = 0 while (smaller): index+=1 smaller = n >= k ** index print(index) if __name__ == "__main__": main()
[ "expression.operator.compare.change", "assignment.value.change" ]
560,262
560,263
u955547613
python
p02766
nt,kt = input().split() n = int(nt) k = int(kt) i = 1 while n > (k ** i): i = i+1 print(i +1)
nt,kt = input().split() n = int(nt) k = int(kt) i = 1 while n >= (k ** i): i = i+1 print(i)
[ "expression.operator.compare.change", "control_flow.loop.condition.change", "expression.operation.binary.remove" ]
560,274
560,275
u244656600
python
p02766
x,y = map(int,input().split()) res = '' count = 0 while y**count < x: count += 1 print(count)
x,y = map(int,input().split()) count = 0 while y**count <= x: count += 1 print(count)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,276
560,277
u411203878
python
p02766
N, K = [int(x) for x in input().split(" ")] i=1 x=K while x < N: x *= K i += 1 print(i)
N, K = [int(x) for x in input().split(" ")] i=1 x=K while x <= N: x *= K i += 1 print(i)
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
560,287
560,286
u796708718
python