ZhenlongDai/ACPR huggingface dataset:
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=map(int, input().split())


def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out

print(Base_10_to_n(N,K))


Failing test case input:
268730574 5

Expected output:
13


Actual output:
1022243334244


Fixed submission (verdict: Accepted):
N,K=map(int, input().split())


def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out

print(len(Base_10_to_n(N,K)))

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def ans(n, k):
    if (int(n/k)):
        return ans(int(n/k), k)+str(n % k)
    return str(n % k)


def main():
    n, k = map(int, input().split())
    print(ans(n, k))


if __name__ == "__main__":
    main()


Failing test case input:
299826435 4

Expected output:
15


Actual output:
101313233310003


Fixed submission (verdict: Accepted):
def ans(n, k):
    if (int(n/k)):
        return ans(int(n/k), k)+str(n % k)
    return str(n % k)


def main():
    n, k = map(int, input().split())
    print(len(ans(n, k)))


if __name__ == "__main__":
    main()

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())
i = 1
r = 1
while True:
    i+=1
    if n - k**r > 0:
        n -= k ** r
    else:
        if k > n:
            i = 1
        break
    r+=1
print(i)

Failing test case input:
1110011 7

Expected output:
8


Actual output:
9


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
i = 1
r = 1
while True:
    if n - k**r >= 0:
        pass
    else:
        if k > n:
            i = 1
        break
    i+=1
    r+=1
print(i)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin
N,K = [int(x) for x in stdin.readline().rstrip().split()]
ans = 0
for k in range(100):
    N -= (K**k)
    ans += 1
    if N <= 0:
        break
    
    
print(ans)

Failing test case input:
503878812 5

Expected output:
13


Actual output:
14


Fixed submission (verdict: Accepted):
from sys import stdin
N,K = [int(x) for x in stdin.readline().rstrip().split()]
ans = 0
for k in range(10000000):
    if N < K**k:
        break
    
print(k)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
ans=1
f=0
while ans < n-1:
    ans*=k
    f+=1
print(f)

Failing test case input:
0010001 10

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
ans=1
f=0
while ans < n+1:
    ans*=k
    f+=1
print(f)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())

i = 0
while n > 0:
    n = n - k**i
    i += 1

print(i)

Failing test case input:
1011111 4

Expected output:
10


Actual output:
11


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())

i = 1
while k**i <= n:
    i += 1
    
print(i)
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())
ans = 1
tmp = 1

while N >= tmp:
    tmp = tmp * K
    ans += 1

print(tmp)
print(ans-1)

Failing test case input:
4000772700 2

Expected output:
32


Actual output:
4294967296
32


Fixed submission (verdict: Accepted):
N, K = map(int, input().split())
ans = 1
tmp = 1

while N >= tmp:
    tmp = tmp * K
    ans += 1


print(ans-1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
N,K = map(int,input().split())
if N < K:
    print(0)
    sys.exit()
count = 1
while N>=K:
    K=K*K
    count += 1

print(count)

Failing test case input:
1010101 8

Expected output:
7


Actual output:
4


Fixed submission (verdict: Accepted):
import sys
N,K = map(int,input().split())
K0 = K
if N < K:
    print(1)
    sys.exit()
count = 1
while N>=K:
    K=K*K0
    count += 1

print(count)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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)

Failing test case input:
173584601 2

Expected output:
28


Actual output:
0


Fixed submission (verdict: Accepted):
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)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,k = map(int, input().split())

L = []
while True:
  N = int(math.floor(math.log(n)/math.log(k)))
  L.append(N)
  n = n - k**N
  if n <= k-1:
    print(len(L)+1)
    exit()


Failing test case input:
74349643 7

Expected output:
10


Actual output:
34


Fixed submission (verdict: Accepted):
import math
n,k = map(int, input().split())

N = int(math.floor(math.log(n)/math.log(k)))
L = []
for i in range(N+1):
  L.append(n
  n = n % k**(N-i)
  
print(len(L))

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
res = 1
for i in range(30):
  if b**i > a:
    res = i
    break
print(res)

Failing test case input:
4000772700 2

Expected output:
32


Actual output:
1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
res = 1
for i in range(100):
  if b**i > a:
    res = i
    break
print(res)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int,input().split())
for i in range(1,31):
    if K**i <= N < K**(i+1):
        print(i+1)
        break

Failing test case input:
4000772700 2

Expected output:
32


Actual output:

Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
if N == 0 or N == 1:
    print(1)
for i in range(1,100):
    if K**i <= N < K**(i+1):
        print(i+1)
        break
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,k = map(int, input().split())

L = []
while True:
  N = int(math.floor(math.log(n)/math.log(k)))
  L.append(N)
  n = n - k**N
  if n <= 2:
    print(len(L)+1)
    exit()


Failing test case input:
1110111 5

Expected output:
9


Actual output:
15


Fixed submission (verdict: Accepted):
import math
n,k = map(int, input().split())

N = int(math.floor(math.log(n)/math.log(k)))
L = []
for i in range(N+1):
  L.append(n
  n = n % k**(N-i)
  
print(len(L))

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
i = list(map(int, input().split()))
j=1
while i[0]<i[1]**j:
  j+=1
print(j)

Failing test case input:
1110011 7

Expected output:
8


Actual output:
1


Fixed submission (verdict: Accepted):
i= list(map(int, input().split()))
j=1
while i[0]>=i[1]**j:
  j+=1
print(j)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int, input().split())

for p in range(1, 30):
    if K**(p-1) <= N and N < K**p:
        print(p)


Failing test case input:
1568902019 2

Expected output:
31


Actual output:

Fixed submission (verdict: Accepted):
N, K = map(int, input().split())

for p in range(1, 100):
    if K**(p-1) <= N and N < K**p:
        print(p)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
input = input()

arr = input.split(" ")
N = int(arr[0])
K = int(arr[1])

def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out

R = Base_10_to_n(11, 2)

print(len(str(R)))

Failing test case input:
658939863 6

Expected output:
12


Actual output:
4


Fixed submission (verdict: Accepted):
input = input()

arr = input.split(" ")
N = int(arr[0])
K = int(arr[1])

def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out

R = Base_10_to_n(N, K)

print(len(str(R)))

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,k = map(int, input().split())

ans = 0

while n > 0:
  n /= k
  ans += 1
  
print(ans)


Failing test case input:
1010001 5

Expected output:
9


Actual output:
472


Fixed submission (verdict: Accepted):
n,k = map(int, input().split())

ans = 0

while n > 0:
  n /= k
  n = int(n)
  ans += 1
  
print(ans)
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin


def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out


def get_result(data):
    print(data)
    N, K = data[0]
    return len(Base_10_to_n(N, K))

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)


Failing test case input:
52006666 4

Expected output:
13


Actual output:
[[52006666, 4]]
13


Fixed submission (verdict: Accepted):
from sys import stdin


def Base_10_to_n(X, n):
    X_dumy = X
    out = ''
    while X_dumy>0:
        out = str(X_dumy%n)+out
        X_dumy = int(X_dumy/n)
    return out


def get_result(data):
    N, K = data[0]
    return len(Base_10_to_n(N, K))

if __name__ == '__main__':
    raw_data = [val.rstrip('\n') for val in stdin.readlines()]
    data = [list(map(int, val.split(' '))) for val in raw_data]
    result = get_result(data)
    print(result)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,r=list(map(int,input().split()))
for i in range(10,-1,-1):
    if r**i<=n:
        ans=i+1
        break
print(ans)

Failing test case input:
658939863 6

Expected output:
12


Actual output:
11


Fixed submission (verdict: Accepted):
import math
n,r=list(map(int,input().split()))


for i in range(40,-1,-1):
    if r**i<=n:
        ans=i+1
        break
print(ans)

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
X,n = 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)
a=Base_10_to_n(X, n)
print(a)

Failing test case input:
1011101 4

Expected output:
10


Actual output:
3312312131


Fixed submission (verdict: Accepted):
X,n = 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)
a=Base_10_to_n(X, n)
print(len(str(a)))

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,K = map(int,input().split())
tmp = 1
for i in range(1,30):
    if N > K**i:
        tmp = i+1
    else:
        print(tmp)
        break

Failing test case input:
1568902019 2

Expected output:
31


Actual output:

Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
tmp = 1
for i in range(1,40):
    if N >= K**i:
        tmp = i+1
    else:
        print(tmp)
        break

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())
i = 1
r = 1
while True:
    i+=1
    if n - k**r > 1:
        n -= k ** r
    else:
        if i == 2:
            i = 1
        break
    r+=1
print(i)

Failing test case input:
1011111 4

Expected output:
10


Actual output:
11


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
i = 1
r = 1
while True:
    if n - k**r >= 0:
        pass
    else:
        if k > n:
            i = 1
        break
    i+=1
    r+=1
print(i)
Problem: p02766
Buggy submission (PyPy3 (7.3.0), verdict: Wrong Answer):
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)
x2 = Base_10_to_n(N,K)
print( x2 )


Failing test case input:
550505180 3

Expected output:
19


Actual output:
1102100212120010202


Fixed submission (verdict: Accepted):
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)
x2 = Base_10_to_n(N,K)
print(len(x2))

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def main():
    N, K = map(int, input().split())
    if K ==1:
        print(N+1)
    elif N % K == 0:
        print(math.ceil(math.log(N,K))+1)
    else:
        print(math.ceil(math.log(N,K)))


if __name__ == '__main__':
    main()

Failing test case input:
314159265 3

Expected output:
18

Actual output:
19


Fixed submission (verdict: Accepted):
import math
def main():
    N, K = map(int, input().split())
    digit = 0
    while N != 0:
        k = N % K
        n = int(N/K)
        N = n
        digit+=1

    print(digit)

if __name__ == '__main__':
    main()

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n, k = map(int, input().split())
ans = 1
while n < k:
    n = n / k
    ans += 1
print(ans)


Failing test case input:
658939863 3

Expected output:
19


Actual output:
1


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
ans = 1
while n >= k:
    n = n / k
    ans += 1
print(ans)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int, input().split())
cnt = 0
while True:
  cnt += 1
  N = N/K
  if N == 0:
    break
print(cnt)

Failing test case input:
1011111 4

Expected output:
10


Actual output:
548


Fixed submission (verdict: Accepted):
N,K = map(int, input().split())
cnt = 0
while N >= 1:
  cnt += 1
  N = int(N/K)
print(cnt)

Problem: p02766
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, k = map(int, input().split())
counter = 1
while n > k:
    n = int(n / k)
    counter += 1
    print(n)
print(counter)


Failing test case input:
74349643 7

Expected output:
10


Actual output:
10621377
1517339
216762
30966
4423
631
90
12
1
10


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
counter = 1
while n >= k:
    n = int(n / k)
    counter += 1
print(counter)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int, input().split())


isFlg = False
i=1
while True:
    tmp = k **i

    if n <= tmp:
        isFlg = True

    i+=1

    if isFlg:
        break

print(i)




Failing test case input:
1568902019 2

Expected output:
31


Actual output:
32


Fixed submission (verdict: Accepted):
n,k = map(int, input().split())

isFlg = False
i=1
while True:
    tmp = k **i

    if n < tmp:
        isFlg = True


    if isFlg:
        break

    i+=1


print(i)
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
a = list(map(int, input().split()))
print(math.ceil(math.log10(a[1]) * a[0]))


Failing test case input:
0000101 8

Expected output:
3


Actual output:
92


Fixed submission (verdict: Accepted):
import math
a = list(map(int, input().split()))
print(math.floor(math.log(a[0],a[1])) + 1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
n,k=map(int,input().split())
print(int(math.log(n,k)))

Failing test case input:
526226813 2

Expected output:
29


Actual output:
28


Fixed submission (verdict: Accepted):
import math
n,k=map(int,input().split())
print(int(math.log(n,k))+1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
ans = 0
m = 1
while m > n:
  m*k
  ans += 1
print(ans)

Failing test case input:
0011011 6

Expected output:
6


Actual output:
0


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
ans = 0
m = 1
while m <= n:
  m *= k
  ans += 1
print(ans)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
count=0
while (n/k)>=1:
  n/=k
  count+=1

print(count)

Failing test case input:
0111011 5

Expected output:
8


Actual output:
7


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
count=0
while (n/k)>=1:
  n/=k
  count+=1

print(count+1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = [int(i) for i in input().split()]

cnt = 1
while True:
    N = N - K ** cnt
    cnt = cnt + 1
    if (N < 0):
        break

print(cnt)

Failing test case input:
0110011 5

Expected output:
8


Actual output:
9


Fixed submission (verdict: Accepted):
N, K = [int(i) for i in input().split()]

cnt = 0
while True:
    N = N - ((K-1) * (K ** cnt))
    cnt = cnt + 1
    if (N <= 0):
        break

print(cnt)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math

N, K = map(int, input().split())
P = math.log(N, K)
Q = math.floor(P)

print(Q)

Failing test case input:
1010101 8

Expected output:
7


Actual output:
6


Fixed submission (verdict: Accepted):
import math
 
N, K = map(int, input().split())
P = math.log(N, K)
Q = math.floor(P)
 
print(Q + 1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
from sys import stdin

def rec(n, k, r):
  if n < k:
    return r
  else:
    q, mod = divmod(n, k)
    r += str(mod)
    n = q
    return rec(n, k, r)

def main():
  N, K = [int(x) for x in stdin.read().rstrip().split()]
  print(rec(N, K, ''))

Failing test case input:
299826435 3

Expected output:
18


Actual output:

Fixed submission (verdict: Accepted):
from sys import stdin


def rec(n, k, cnt):
    if n < k:
        return cnt + 1
    else:
        q, mod = divmod(n, k)
        cnt += 1
        n = q
        return rec(n, k, cnt)


def main():
    N, K = [int(x) for x in stdin.read().rstrip().split()]
    print(rec(N, K, 0))


if __name__ == "__main__":
    main()
Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
N,K = map(int,input().split())
tmp = 1
for i in range(1,30):
    if N >= K**i:
        tmp = i+1
    else:
        print(tmp)
        break


Failing test case input:
1568902019 2

Expected output:
31


Actual output:

Fixed submission (verdict: Accepted):
N,K = map(int,input().split())
tmp = 1
for i in range(1,40):
    if N >= K**i:
        tmp = i+1
    else:
        print(tmp)
        break

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    
    while n >= i:
        print(i)
        i *= k
        cnt += 1
    print(cnt)

if __name__ == '__main__':
    main()

Failing test case input:
1010111 2

Expected output:
20


Actual output:
1
2
4
8
16
32
64
128
256
512
1024
2048
4096
8192
16384
32768
65536
131072
262144
524288
20


Fixed submission (verdict: Accepted):
def main():
    n, k = map(int, input().split())
    cnt = 0
    i = 1
    
    while n >= i:
        i *= k
        cnt += 1
    print(cnt)

if __name__ == '__main__':
    main()

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
N,K=map(int,input().split())
if math.log(N,K).is_integer:
    print(int(math.log(N,K)))
else:
    print(int(math.log(N,K))+1)

Failing test case input:
279733938 5

Expected output:
13


Actual output:
12


Fixed submission (verdict: Accepted):
import math
N,K=map(int,input().split())
x=math.log(N,K)
if x.is_integer():
    print(int(x)+1)
else:
    print(int(x)+1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def main():
    N, K = map(int, input().split())
    if N % K == 0:
        print(math.ceil(math.log(N,K))+1)
    else:
        print(math.ceil(math.log(N,K)))


if __name__ == '__main__':
    main()

Failing test case input:
4000772700 2

Expected output:
32


Actual output:
33


Fixed submission (verdict: Accepted):
import math
def main():
    N, K = map(int, input().split())
    digit = 0
    while N != 0:
        k = N % K
        n = int(N/K)
        N = n
        digit+=1

    print(digit)

if __name__ == '__main__':
    main()

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b = list(map(int,input().split()))
for i in range(10):
   if b**i <= a < b**(i+1):print(i+1)
      
      
   
   
      

Failing test case input:
5162253 2

Expected output:
23


Actual output:

Fixed submission (verdict: Accepted):
n,k = list(map(int,input().split()))
for i in range(100):
  if k**i <= n < k**(i+1):
    print(i+1)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K = map(int,input().split())
count = 1
while N>=K:
    K=K*K
    count += 1

print(count)

Failing test case input:
1011111 4

Expected output:
10


Actual output:
5


Fixed submission (verdict: Accepted):
import sys
N,K = map(int,input().split())
K0 = K
if N < K:
    print(1)
    sys.exit()
count = 1
while N>=K:
    K=K*K0
    count += 1

print(count)
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k = map(int,input().split())
ans = 0
while int(n / k) != 0:
  ans += 1
  n = int(n / k)
print(ans)

Failing test case input:
0011001 5

Expected output:
6


Actual output:
5


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
ans = 0
while n != 0:
  n = int(n / k)
  ans += 1
print(ans)

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
a,b=map(int,input().split())
res = 1
for i in range(30):
  if b**i >= a:
    res = i
    break
print(res)

Failing test case input:
937416134 2

Expected output:
30


Actual output:
1


Fixed submission (verdict: Accepted):
a,b=map(int,input().split())
res = 1
for i in range(100):
  if b**i > a:
    res = i
    break
print(res)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
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

Failing test case input:
86816898 6

Expected output:
11


Actual output:

Fixed submission (verdict: Accepted):
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

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
i=0
while a>b:
    i+=1
    b*=b
print(i)

Failing test case input:
279733938 5

Expected output:
13


Actual output:
4


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
c=b
i=1
while a>=c:
    c=c*b
    i+=1
print(i)

Problem: p02766
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
n,k = map(int,input().split())
def base10to(n, k):
  if(int(n/k)):
    return base10to(int(n/k), k) + str(n%k)
  return str(n%k)
print(base10to(n,k))

Failing test case input:
86816898 6

Expected output:
11


Actual output:
12340442030


Fixed submission (verdict: Accepted):
n,k = map(int,input().split())
def base10to(n, k):
  if(int(n/k)):
    return base10to(int(n/k), k) + str(n%k)
  return str(n%k)
print(len(base10to(n,k)))

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n,k=map(int,input().split())
i=1
while True:
    if n<(k**(i-1)):
        print(i)
        break
    else:
        i=i+1

Failing test case input:
0101111 5

Expected output:
8


Actual output:
9


Fixed submission (verdict: Accepted):
n,k=map(int,input().split())
i=1
while True:
    if n<(k**(i-1)):
        print(i-1)
        break
    else:
        i=i+1

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n, k = map(int, input().split())

count = 1
while True:
    if n / k >= 1:
        n  = int(n / k)
        print(n)
        count += 1
    else:
        break

print(count)

Failing test case input:
49139062 3

Expected output:
17


Actual output:
16379687
5459895
1819965
606655
202218
67406
22468
7489
2496
832
277
92
30
10
3
1
17


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())

count = 1
while True:
    if n / k >= 1:
        n  = int(n / k)
        count += 1
    else:
        break

print(count)
Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N,K=map(int,input().split())
quotient=N
cnt=1
while quotient>=K:
    remainder=quotient%K
    quotient=(quotient-remainder)/K
    print(int(remainder),int(quotient))
    cnt+=1
print(cnt)

Failing test case input:
1010111 10

Expected output:
7


Actual output:
1 101011
1 10101
1 1010
0 101
1 10
0 1
7


Fixed submission (verdict: Accepted):
N,K=map(int,input().split())
quotient=N
cnt=1
while quotient>=K:
    remainder=quotient%K
    quotient=(quotient-remainder)/K
    cnt+=1
print(cnt)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N, K = map(int,input().split())
count = 0
while N > K :
  N = int(N / K)
  count += 1
print(count + 2)

Failing test case input:
658939863 6

Expected output:
12


Actual output:
13


Fixed submission (verdict: Accepted):
N, K = map(int,input().split())
count = 1
while int(N / K) != 0 :
  N = int(N / K)
  count += 1
print(count)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import math
def I():
  return input()
def II():
  return int(input())
def MII():
  return map(int, input().split())
def LMII():
  return list(map(int, input().split()))

n, r = MII()
i = 1
while True:
  if n < r:
    break
  else:
    r *= r
    i += 1
print(i)

Failing test case input:
0010101 8

Expected output:
5


Actual output:
4


Fixed submission (verdict: Accepted):
import math
def I():
  return input()
def II():
  return int(input())
def MII():
  return map(int, input().split())
def LMII():
  return list(map(int, input().split()))

n, r = MII()
i = 1
a = r
while True:
  if n < a:
    break
  else:
    a *= r
    i += 1
print(i)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import fractions
import collections
from collections import deque
import math
import itertools

N,K=map(int,input().split())
print(math.ceil(math.log10(N)/(math.log10(2))))

Failing test case input:
325680770 3

Expected output:
18


Actual output:
29


Fixed submission (verdict: Accepted):
import fractions
import collections
from collections import deque
import math
import itertools

N,K=map(int,input().split())
i=1
P=K
while(P<=N):
    i=i+1
    P=P*K
else:
    print(i)

Problem: p02766
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a,b=input().split()
a=int(a)
b=int(b)
i=2
while a>b:
    i+=1
    b*=b
print(i)

Failing test case input:
1010001 2

Expected output:
20


Actual output:
7


Fixed submission (verdict: Accepted):
a,b=input().split()
a=int(a)
b=int(b)
c=b
i=1
while a>=c:
    c=c*b
    i+=1
print(i)

Problem: p02766
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
n, k = map(int, input().split())
counter = 1
while n <= 1:
    n = int(n / k)
    counter += 1
print(counter)


Failing test case input:
1568902019 2

Expected output:
31


Actual output:
1


Fixed submission (verdict: Accepted):
n, k = map(int, input().split())
counter = 1
while n >= k:
    n = int(n / k)
    counter += 1
print(counter)
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if int(input())%2:
    print('Hello World')
else:
    print(sum(map(int,input().split())))


Failing test case input:
2
0
6

Expected output:
6


Actual output:
0


Fixed submission (verdict: Accepted):
if input()=='1':
    print('Hello World')
else:
    print(int(input())+int(input()))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import io
import sys

def solve():
    
    line1 = sys.stdin.readline().rstrip()
    line2 = sys.stdin.readline().rstrip()
    line3 = sys.stdin.readline().rstrip()
    if int(line1) == 1:
        return "Hello World"
    else:
        return int(line2)+int(line3)
solve()

Failing test case input:
2
5
63

Expected output:
68


Actual output:

Fixed submission (verdict: Accepted):
import io
import sys

def solve():
    line1 = sys.stdin.readline().rstrip()
    line2 = sys.stdin.readline().rstrip()
    line3 = sys.stdin.readline().rstrip()
    if int(line1) == 1:
        print("Hello World")
    else:
        print(int(line2)+int(line3))
solve()

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = int(input())

    if a ==1:
        print("Hello World")
    else:
        b =input()
        c = input()
        print(b+c)

Failing test case input:
2
-10
4

Expected output:
-6


Actual output:
-104


Fixed submission (verdict: Accepted):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = int(input())

    if a ==1:
        print("Hello World")
    else:
        b =int(input())
        c = int(input())
        print(b+c)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input("input number"))

if n == 1:
    print('Hello World')
elif n == 2:
    a = int(input("input number A"))
    b = int(input("input number B"))
    print(a+b)

Failing test case input:
2
-9
5

Expected output:
-4


Actual output:
input numberinput number Ainput number B-4


Fixed submission (verdict: Accepted):
N = int(input(""))

if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input(""))
    B = int(input(""))
    print(A + B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())

if a == 1:
    print('Hello World')
else:
    sumsum = 0.0
    for i in range(2):
        sumsum += int(input())
        
    print(sumsum)

Failing test case input:
2
-29
3

Expected output:
-26


Actual output:
-26.0


Fixed submission (verdict: Accepted):
a = int(input())

if a == 1:
    print('Hello World')
else:
    sumsum = 0
    for i in range(2):
        sumsum += int(input())
        
    print(sumsum)
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=list(input())
if len(N)==1:
    print('Hello World')
else:
    A=int(N[2])
    B=int(N[4])
    print(A+B)

Failing test case input:
2
-6
-2

Expected output:
-8


Actual output:
Hello World


Fixed submission (verdict: Accepted):
N=int(input())
if N==1:
    print('Hello World')
else:
    A=int(input())
    B=int(input())
    print(A+B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
N=input()
if N == 1:
	print("Hello World")
elif N == 2:
	a=input()
	b=input()
	print(a+b)


Failing test case input:
2
5
53

Expected output:
58


Actual output:

Fixed submission (verdict: Accepted):
import sys
N=int(input())
if N == 1:
	print("Hello World")
elif N == 2:
	a=int(input())
	b=int(input())
	print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7

if i() == 1:
    print('Hello World')
else:
    print(i()*i())

Failing test case input:
2
41
5

Expected output:
46


Actual output:
205


Fixed submission (verdict: Accepted):
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7

if i() == 1:
    print('Hello World')
else:
    print(i()+i())

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()
if N=="1":
    print("Hello World")
else:
    A = input()
    B = input()
    print(A+B)

Failing test case input:
2
10
19

Expected output:
29


Actual output:
1019


Fixed submission (verdict: Accepted):
N = input()
if N=="1":
    print("Hello World")
else:
    A = int(input())
    B = int(input())
    print(A+B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

if N==1:
 print ("Hello World")
elif N==2:
 N1 = input()
 N2 = input()
 print (N1+N2)


Failing test case input:
2
-4
2

Expected output:
-2


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())

if N==1:
 print ("Hello World")
elif N==2:
 N1 = int(input())
 N2 = int(input())
 print (N1+N2)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
age=int(input())
if age==1:
    print("Hello Wolrd")
else:
    a=input()
    b=input()
    print(a+b)

Failing test case input:
2
-1
16

Expected output:
15


Actual output:
-116


Fixed submission (verdict: Accepted):
age=int(input())
if age==1:
    print("Hello World")
else:
    a=int(input())
    b=int(input())
    print(a+b)
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input()=='1':
    print('Hello World')
elif input()=='2':
    A=int(input())
    B=int(input())
    print(A+B)

Failing test case input:
2
-9
5

Expected output:
-4


Actual output:

Fixed submission (verdict: Accepted):
N = int(input())
if N==1:
    print('Hello World')
else:
    A=int(input())
    B=int(input())
    print(A + B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
  N = map(int, input())
  if N == 1:
    print('Hello World')
  elif N == 2:
    A = map(int, input())
    B = map(int, input())
    print(A + B)


main()

Failing test case input:
2
0
6

Expected output:
6


Actual output:

Fixed submission (verdict: Accepted):
def main():
  N = int(input())
  if N == 1:
    print('Hello World')
  elif N == 2:
    A = int(input())
    B = int(input())
    print(A + B)


main()

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N == 1:
  print("Hello World")
else:
  print(sum(list(map(int, input().split()))))

Failing test case input:
2
-22
-2

Expected output:
-24


Actual output:
-22


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
  print("Hello World")
else:
  print(sum([int(input()) for _ in range(2)]))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


import sys
input = sys.stdin.readline

N = input()

if N == 1:
    print("Hello World")
elif N == 2:
    a, b = map(int, input().split())
    print(a+b)


Failing test case input:
2
-23
1

Expected output:
-22


Actual output:

Fixed submission (verdict: Accepted):


import sys
input = sys.stdin.readline

N = int(input())

if N == 1:
    print("Hello World")
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N % 2 == 1:
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  print(a*b)

Failing test case input:
2
3
11

Expected output:
14


Actual output:
33


Fixed submission (verdict: Accepted):
N = int(input())
if N % 2 == 1:
  print("Hello World")
else:
  a = int(input())
  b = int(input())
  print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if int(input()) == 1:
    print("Hello World")
elif int(input()) == 2:
    print(int(input()) + int(input()))


Failing test case input:
2
-18
8

Expected output:
-10


Actual output:

Fixed submission (verdict: Accepted):
if int(input()) == 1:
    print("Hello World")
else:
    print(int(input()) + int(input()))
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
def main():
    N=int(input('N?>'))

    if N==1:
        print('Hello World')
    elif N==2:
        A=int(input('A?>'))
        B=int(input('B?>'))
        print(A+B)

if __name__ == '__main__':
    main()

Failing test case input:
2
-12
-6

Expected output:
-18


Actual output:
N?>A?>B?>-18


Fixed submission (verdict: Accepted):
def main():
    N=int(input())

    if N==1:
        print('Hello World')
    elif N==2:
        A=int(input())
        B=int(input())
        print(A+B)

if __name__ == '__main__':
    main()

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n == 1:
    print('Hello World')

else:
    a = int(input())
    b = int(input())
    print(a*b)


Failing test case input:
2
4
21

Expected output:
25


Actual output:
84


Fixed submission (verdict: Accepted):
n = int(input())
if n == 1:
    print('Hello World')

else:
    a = int(input())
    b = int(input())
    print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = input()

if N == 1:
    print("Hello world")
    
elif N == 2:
    A = input()
    B = input()
    print(A+B)

Failing test case input:
2
-9
5

Expected output:
-4


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())

if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input())
if N == 1:
    print("hello world")
else:
    A = float(input())
    B = float(input())
    print(A+B)

Failing test case input:
2
-9
0

Expected output:
-9


Actual output:
-9.0


Fixed submission (verdict: Accepted):
N=int(input())
if N == 1:
    print("Hello World")
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if (N == 1): 
    print("Hello World")
else:
    a = input()
    b = input()
    print(a+b)

Failing test case input:
2
-2
-5

Expected output:
-7


Actual output:
-2-5


Fixed submission (verdict: Accepted):
N = int(input())
if (N == 1): 
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if input()=='1':
  print('Hello World')
else:
  print(input()+input())

Failing test case input:
2
19
23

Expected output:
42


Actual output:
1923


Fixed submission (verdict: Accepted):
if input()=='1':
  print('Hello World')
else:
  print(int(input())+int(input()))
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):


AGE_1 = 1
AGE_2 = 2

def main():
    a = int(input("Enter age: "))
    if a == AGE_1:
        print ("Hello World")
    elif AGE_2:
        A = int(input("Enter integer A: "))
        B = int(input("Enter integer B: "))
        output = A + B
        print ("{}".format(str(output)))

if __name__ == "__main__": main()


Failing test case input:
2
-1
16

Expected output:
15


Actual output:
Enter age: Enter integer A: Enter integer B: 15


Fixed submission (verdict: Accepted):


AGE_1 = 1
AGE_2 = 2

def main():
    a = int(input(""))
    if a == AGE_1:
        print ("Hello World")
    elif AGE_2:
        A = int(input(""))
        B = int(input(""))
        output = A + B
        print ("{}".format(str(output)))

if __name__ == "__main__": main()

Problem: p03238
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
N = int(input())
if N == 1:
  print('Hello World')
else:
  print(input() + input())


Failing test case input:
2
-3
65

Expected output:
62


Actual output:
-365


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
  print('Hello World')
else:
  print(int(input()) + int(input()))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()

if a == 1:
    print('Hello World')
elif a == 2:
    print(int(input())+int(input()))

Failing test case input:
2
-8
-4

Expected output:
-12


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())

if a == 1:
    print('Hello World',end='')
elif a == 2:
    print(int(input())+int(input()),end='')

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):

from sys import stdin

a = int(stdin.readline().rstrip())

if a == 1:
    print("Hello World")
else:
    b = int(stdin.readline().rstrip())
    c = int(stdin.readline().rstrip())
    print(a + b)

Failing test case input:
2
-15
0

Expected output:
-15


Actual output:
-13


Fixed submission (verdict: Accepted):

from sys import stdin

a = int(stdin.readline().rstrip())

if a == 1:
    print("Hello World")
else:
    b = int(stdin.readline().rstrip())
    c = int(stdin.readline().rstrip())
    print(b + c)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = input()
print("Hello World") if a=="1" else int(input())+int(input())

Failing test case input:
2
0
7

Expected output:
7


Actual output:

Fixed submission (verdict: Accepted):
a = input()
print("Hello World") if a=="1" else print(int(input())+int(input()))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N=int(input("N="))
if N == 1:
	print('HelloWorld')
elif N == 2:
	A=int(input("A="))
	B=int(input("B="))
	print(A+B)

Failing test case input:
2
-22
-2

Expected output:
-24


Actual output:
N=A=B=-24


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
a = int(input())
num = 0
if a == 1:
  print("Hello World")
else:
  num = [int(input()) for i in range(2)]


Failing test case input:
2
31
18

Expected output:
49


Actual output:

Fixed submission (verdict: Accepted):
a = int(input())
num = 0
if a == 1:
  print("Hello World")
else:
  num = [int(input()) for i in range(2)]
  print(num[0]+num[1])

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input("How old are you ?: "))

if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print("{0}".format(a + b))

Failing test case input:
2
-12
-6

Expected output:
-18


Actual output:
How old are you ?: -18


Fixed submission (verdict: Accepted):
n = int(input())

if n == 1:
    print("Hello World")
else:
    a = int(input())
    b = int(input())
    print("{0}".format(a + b))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n=input()
if n==1:
    print("Hello World")
elif n==2:
    a=int(input())
    b=int(input())
    print(a+b)


Failing test case input:
2
-18
5

Expected output:
-13


Actual output:

Fixed submission (verdict: Accepted):
n=int(input())
if n==1:
    print("Hello World")
elif n==2:
    a=int(input())
    b=int(input())
    print(a+b)

Problem: p03238
Buggy submission (Python (3.8.2), verdict: Wrong Answer):
print('Hello World' if int(input())==1 else int(input())*int(input()))

Failing test case input:
2
4
9

Expected output:
13


Actual output:
36


Fixed submission (verdict: Accepted):
print('Hello World' if int(input())==1 else int(input())+int(input()))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N == 1:
    print('HelloWorld')
elif N == 2:
    A = int(input("A="))
    B = int(input("B="))
    print(A+B)

Failing test case input:
2
18
23

Expected output:
41


Actual output:
A=B=41


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input())
    B = int(input())
    print(A+B)

Problem: p03238
Buggy submission (PyPy3 (2.4.0), verdict: Wrong Answer):
a = int(input())
if a == 1:
    print("Hello World")
    exit()
else:
    b = int(input())
    c = int(input())
    print(a+b)

Failing test case input:
2
4
21

Expected output:
25


Actual output:
6


Fixed submission (verdict: Accepted):
a = int(input())
if a == 1:
    print("Hello World")
    exit()
else:
    b = int(input())
    c = int(input())
    print(b+c)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input(""))

if n == 1:
    print('Hello World')
elif n == 2:
    a = int(input("A"))
    b = int(input("B"))
    print(a+b)

Failing test case input:
2
-6
82

Expected output:
76


Actual output:
AB76


Fixed submission (verdict: Accepted):
N = int(input(""))

if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input(""))
    B = int(input(""))
    print(A + B)
Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = int(input())
if n == 1:
  print('Hello World')
else:
  print(sum(list(map(int,input().split()))))



Failing test case input:
2
-23
1

Expected output:
-22


Actual output:
-23


Fixed submission (verdict: Accepted):
n = int(input())
if n == 1:
  print('Hello World')
else:
  print(sum([int(input()) for i in range(2)]))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N == 1:
  print("Hello World")
if N == 2:
  A = input()
  B = input()
  print(A+B)
  

Failing test case input:
2
3
5

Expected output:
8

Actual output:
35


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
  print("Hello World")
if N == 2:
  A = int(input())
  B = int(input())
  print(A+B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if int(input())%2:
    print('Hello World')
else:
    print(sum(map(int,input().split())))
print('Hello World')

Failing test case input:
2
31
18

Expected output:
49


Actual output:
31
Hello World


Fixed submission (verdict: Accepted):
if input()=='1':
    print('Hello World')
else:
    print(int(input())+int(input()))

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
Old = int(input())
if Old == 1:
    print('Hello World')
else:
    A = input()
    B = input()
    print(A + B)

Failing test case input:
2
-1
16

Expected output:
15


Actual output:
-116


Fixed submission (verdict: Accepted):
Old = int(input())
if Old == 1:
    print('Hello World')
else:
    A = int(input())
    B = int(input())
    print(A + B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
if (int(input()) == 1):
    print("Hello World")
elif (int(input())) == 2:
    A = int(input())
    B = int(input())
    print(A+B)

Failing test case input:
2
14
34

Expected output:
48


Actual output:

Fixed submission (verdict: Accepted):
n = int(input())
if n == 1:
    print('Hello World')
else:
    a = int(input())
    b = int(input())
    print(a+b)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
n = input("")

if n == '1':
    print('Hello World')
elif n == '2':
    a = int(input("A"))
    b = int(input("B"))
    print(a+b)

Failing test case input:
2
-9
0

Expected output:
-9


Actual output:
AB-9


Fixed submission (verdict: Accepted):
N = int(input(""))

if N == 1:
    print('Hello World')
elif N == 2:
    A = int(input(""))
    B = int(input(""))
    print(A + B)

Problem: p03238
Buggy submission (Python (3.4.3), verdict: Wrong Answer):
N = int(input())
if N == 1:
    print('Hellow World')
else:
    print(input()+input())

Failing test case input:
2
-2
143

Expected output:
141


Actual output:
-2143


Fixed submission (verdict: Accepted):
N = int(input())
if N == 1:
    print('Hello World')
else:
    print(int(input())+int(input()))