Harryxun/GPT-100-sft-dataset huggingface dataset:
Problem p02881 (python)

Fixed submission:
N = int(input())
yaku = 1
import math

if N % 2 == 0:
	yaku = 2
	
for i in range(3,int(math.sqrt(N))+1 ,1):
	if N % i == 0:
		yaku = i
		
		
yaku2 = int(N/yaku)

print(int(yaku2+yaku - 2))

Buggy submission (verdict: Runtime Error):
dN = int(input())
yaku = 1

import math

    



if N % 2 == 0:
	yaku = 2
	
for i in range(3,int(math.sqrt(N))+1 ,1):
	if N % i == 0:
		yaku = i
		
		
yaku2 = int(N/yaku)

print(int(yaku2+yaku - 2))
Problem p02831 (python)

Fixed submission:
import fractions
a,b = map(int,input().split())
print(int((a * b) / fractions.gcd(a, b)))

Buggy submission (verdict: Runtime Error):
import math
a,b = map(int,input().split())
def lcm(x, y):
    return int((x * y) / math.gcd(x, y))

print(lcm(a, b))

Buggy submission (verdict: Runtime Error):
import math
a,b = map(int,input().split())
def lcm(x, y):
    return int((x * y) / math.gcd(x, y))

print(lcm(a, b))

Buggy submission (verdict: Runtime Error):
import math
a,b = map(int,input().split())
def lcm(x, y):
    return (x * y) // math.gcd(x, y)

print(lcm(a, b))
Problem p02847 (python)

Fixed submission:
s = input()
week = {'FRI': 2,'THU': 3,'WED': 4,'TUE':5,'MON':6,'SAT':1,'SUN':7}
print(week[s])

Buggy submission (verdict: Runtime Error):
N = int(input())
S = list(input())

a = [chr(i) for i in range(65, 65+26)]
b = [chr(i) for i in range(65+N, 65+26)]
for i in range(N):
    b.append(a[i])

a_dict = {}
for i in range(len(a)) :
    a_dict[a[i]] = b[i]
for i in range(len(S)) :
    S[i] = a_dict[S[i]]

print(''.join(S))
Problem p03011 (python)

Fixed submission:
a = sorted(list(map(int,input().split())))
print(a[0]+a[1])

Buggy submission (verdict: Runtime Error):
a = list(map(int,input().split())).sort()
print(a[0]+a[1])
Problem p02879 (python)

Fixed submission:
a = list(map(int,input().split()))
if a[0] >= 10 or a[1] >= 10:
  print('-1')
else:
  print(a[0] * a[1])

Buggy submission (verdict: Runtime Error):
i = list(map(int, input().split()))
if A > 10 or B > 10:
  print('-1')
else:
  print('A * B')

Buggy submission (verdict: Runtime Error):
i = list(map(int, input().split()))
if A > 10 or B > 10:
  print('1')
else:
  print('A * B')

Buggy submission (verdict: Runtime Error):
s = input().split()
if A > 10 or B > 10:
  print(1)
else:
  print(A * B)

Buggy submission (verdict: Runtime Error):
s = input().split()
if A > 10 or B > 10:
  print(1)
else:
  print(a * b)
Problem p02831 (python)

Fixed submission:
import fractions

a = input().split()
a = list(map(int, a))
def lcm(x, y):
    return (x * y) // fractions.gcd(x,y)
print(lcm(a[0],a[1]))

Buggy submission (verdict: Runtime Error):
import math

a = input().split()
a = list(map(int, a))
def lcm(x, y):
    return (x * y) // math.gcd(x, y)
print(lcm(a[0],a[1]))
Problem p02701 (python)

Fixed submission:
s = set(open(0))
print(len(s)-1)

Buggy submission (verdict: Runtime Error):
n = int(input())
al = []
count = 1
for i in range(n):
  a = input()
  if a　in al:
    count += 1
  else:
    al.append(a)
print(count)
Problem p02707 (python)

Fixed submission:
s = input()

j = [0]*int(s)

a = list(map(int,input().split()))
for i in  range(int(s)-1):
    j[a[i]] += 1
for i in range(len(j)-1):
    print(j[(i+1)])

print(0)

Buggy submission (verdict: Runtime Error):
s = list(open(0))
s = input()

j = [0]*int(s)

a = list(map(int,input().split()))
for i in  range(int(s)-1):
    j[a[i]] += 1
for i in range(len(j)-1):
    print(j[(i+1)])

print(0)
Problem p02623 (python)

Fixed submission:
n, m, k = map(int, input().split())
A = list(map(int, input().split()))
B = list(map(int, input().split()))
a, b = [0], [0]
for i in range(n):
    a.append(a[i] + A[i])
for i in range(m):
    b.append(b[i] + B[i])
c = 0
f = m
for i in range(n+1):
    if a[i]>k:
        break
    while a[i]+b[f]>k:
        f-=1
    c = max(c, i+f)
print(c)

Buggy submission (verdict: Runtime Error):
import math
n = int(input())
def num_div(n) : 
    cnt = 0
    for i in range(1, (int)(math.sqrt(n)) + 1) : 
        if (n % i == 0) : 
            if (n / i == i) : 
                cnt = cnt + 1
            else :
                cnt = cnt + 2 
    return cnt*n 
s = 0
for i in range(1, n+1):
    s+=num_div(i)
print(s)
Problem p02622 (python)

Fixed submission:
x = 0
s = input()
t = input()
y = len(s)
for i in range(y):
  if s[i] != t[i]:
    x += 1
  i += 1
print(x)

Buggy submission (verdict: Runtime Error):
x = 0
s = input()
t = input()
y = len(s)
for i in range(y)
  if s[i] == t[i]:
    x += 1
  i += 1
print(x)

Buggy submission (verdict: Runtime Error):
x = 0
s = input()
t = input()
y = len(s)
for i in range(y)
  if s[i] == t[i]:
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
x = 0
s = input()
t = input()
for i in range(len(s))
  if s[i] == t[i]:
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
int x = 0
int i = 0
s = input()
t = input()
for i in range(len(s))
  if s[i] == t[i]:
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
String s
String t
int x
int i = 0
s = input()
t = input()
for i in range(len(s))
  if s[i] == t[i]:
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
String s
String t
int x
int i = 0
s = input()
t = input()
for i in range(len(s))
  if(s[i] == t[i]):
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
String s
String t
int x
int i = 0
s = input()
t = input()
for i in range(len(s))
  if(s[i] == t[i])
    x = x + 1
  i = i + 1
print(x)

Buggy submission (verdict: Runtime Error):
String s
String t
int x
int i = 0
s = input()
t = input()
for(i in range(len(s)))
  if(s[i] == t[i])
    x = x + 1
  i = i + 1
print(x)
Problem p02627 (python)

Fixed submission:
alp = str(input())
print("A") if alp.isupper() == True else print("a")

Buggy submission (verdict: Runtime Error):
alp = str(input())
print "A" if alp.isupper() == True else print "a"
Problem p02676 (python)

Fixed submission:
Kkk = int(input())  
String = str(input())
res=""
if len(String)>Kkk :
   for i in range (0,len(String)):
    if i<=Kkk-1:
      res=res+String[i]
   print(res+("..."))
else : 
  print(String)

Buggy submission (verdict: Runtime Error):
Kkk = int(input())  
String = str(input())
if len(String)==Kkk :
  print(String) 
else : 
  String.translate({ord(i): None for i in range(Kkk+1,len(String)-1)})
  print(String.append("..."))
Problem p02659 (python)

Fixed submission:
from decimal import Decimal

C, D = map(Decimal, input().split())
print(int(C*D))

Buggy submission (verdict: Runtime Error):
import math
import sys
N = input()
lista = N.split()

A = lista[0]
B = lista[1]

C = float(A)
D = float(B)
print(int(C//D))

Buggy submission (verdict: Runtime Error):
import math
import sys
N = input()
lista = N.split()

A = lista[0]
B = lista[1]

C = float(A)
D = float(B)
print(int(C//D))

Buggy submission (verdict: Runtime Error):
import math
import sys
C, D = map(int, input().split())
 
print(C//D)

Buggy submission (verdict: Runtime Error):
import math
import sys
C, D = map(int, input().split())

print(C//D)
Problem p02699 (python)

Fixed submission:
import math
#数値ひとつ
#I = int(input())
#数値欲しいとき
N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
#受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))

if N>M:
    print('safe')
else:
    print('unsafe')

Buggy submission (verdict: Runtime Error):

A, B, C, D = map(int, input().split())

Thit = A
Tatk = B
Ahit = C
Aatk = D
win = False

while Thit <= 0 or Ahit <= 0:
    Ahit = Ahit - Tatk
    if Ahit <= 0:
        win = True
        break
    Thit = Thit - Aatk
    if Thit <= 0:
        break

if win:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
A, B, C, D = map(int, input().split())

Thit = A
Tatk = B
Ahit = C
Aatk = D
win = False

while Thit < 0 or Ahit < 0:
    Ahit = Ahit - Tatk
    if Ahit < 0:
        win = True
        break
    Thit = Thit - Aatk
    if Thit < 0:
        break

if win:
    print("Yes")
else:
    print("No")
Problem p02701 (python)

Fixed submission:
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
#受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき(Iは回数)
list = [input() for i in range(I)]
print(len(set(list)))

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
#受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき
list = '\n'.join(iter(input, ''))
print(len(set(list))-1)

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#N, M = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
#受け取る数が未定かつリストにしたいとき
#list = list(map(int, input().split()))
#受け取る文字列が未定かつリストにしたいとき
list = '\n'.join(iter(input, ''))
print(len(set(list)))
Problem p02711 (python)

Fixed submission:
import math
#数値ひとつ
#I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき

N = input()
listA = list(N)

A = listA[0]
B = listA[1]
C = listA[2]

bool = False

if A == '7':
    bool = True

elif B == '7':
    bool = True

elif C == '7':
    bool = True


if bool == True:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
#I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
A = input()
B = input()
C = input()

bool = False

if A == '7':
    bool = True

elif B == '7':
    bool = True

elif C == '7':
    bool = True


if bool == True:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
#str = input()


list = I.list()

bool = False
for a in list:
    if a == 7:
        bool = True
        break

if bool == True:
    print('Yes')
else:
    print('No')
Problem p02712 (python)

Fixed submission:
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
a = 0
I = I + 1
for num in range(I):
    if num%3 == 0 and num%5 == 0:
        a = a
    elif num%3 == 0:
        a = a
    elif num%5 == 0:
        a = a
    else:
        a = a + num

print(a)

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
I = int(input())
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
#N = input()
#それをListにしたいとき
#listA = list(N)
a = 0
for num in range(I):
    if num%3 == 0 and num%5 == 0:

    elif num%3 == 0:

    elif num%5 == 0:

    else:
        a = a + num

print(a)
Problem p02753 (python)

Fixed submission:
S = input()
tList = list(S)

firstStation = tList[0]
Monopoly = 0

for str in tList:
    if(str == firstStation):
        Monopoly = 0

    else:
        Monopoly = 1
        break

if(Monopoly == 0):
    print('No')
else:
    print('Yes')

Buggy submission (verdict: Runtime Error):
import math
#数値ひとつ
#数値欲しいとき
#H, W = map(int, input().split())
#文字欲しいとき
#str = input()
#文字分割
A,B,C = input().split()

if A == B == C:
    print('No')
else:
    print('Yes')
Problem p02759 (python)

Fixed submission:
n = int(input())
if n % 2 == 0:
    print(int(n/2))
else:
    print(n//2 + 1)

Buggy submission (verdict: Runtime Error):
n = input()
if n % 2 == 0:
  print(n/2)
else:
  print(n//2 + 1)
Problem p02676 (python)

Fixed submission:
ln=int(input())
s=input()
l=len(s)
if ln<l:
  print(s[:ln]+'...')

elif ln>=l:
  print(s)

Buggy submission (verdict: Runtime Error):
ln=int(input())
st=input()
op=''
if len(st)<=ln:
  print(st)
else:
  ln1=len(st)-ln
  for i in range(ln):
    op=op+'.'
  print(st[:ln]+op
Problem p02622 (python)

Fixed submission:
m=input()
n=input()
count=0;
for i in range(len(m)):
    if m[i]!=n[i] :
         count+=1
print(count)

Buggy submission (verdict: Runtime Error):
m=input()
n=input()
count=0;
for i in range(len(m))
    if m[i] != n[i] :
         count+ = 1
print(count)

Buggy submission (verdict: Runtime Error):
m=input()
n=input()
count=0;
for i in range(len(m))
    if m[i]!=n[i] :
         count+=1
print(count)

Buggy submission (verdict: Runtime Error):
m=input()
n=input()
count=0;
for i in range(len(m))
    if m!=n :
         count+=1
print(count)
Problem p02629 (python)

Fixed submission:
#!/usr/bin/env python
import sys
import re
from collections import deque, defaultdict
from itertools import combinations, combinations_with_replacement
import bisect
from math import factorial, sqrt, log, ceil, floor
sys.setrecursionlimit(1000000)


def main():
    #N, M = map(int, input().split())
    #N, K = map(int, input().split())
    #ps = list(map(int, input().split()))

    N = int(input())

    ds = []
    for n in range(12):
        k = 11 - n
        threshold = sum([26 ** i for i in range(k+1)])
        d = 0
        if N >= threshold:
            for j in range(26):
                if N >= threshold + 26 ** k * j:
                    d = j
            d += 1
            N -= 26 ** k * d
        ds.append(d)

    chars = 'abcdefghijklmnopqrstuvwxyz'
    result = ''
    for n in range(12):
        if ds[n] > 0:
            result += chars[ds[n]-1]

    print(result)


if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python
import sys
import re
from collections import deque, defaultdict
from itertools import combinations, combinations_with_replacement
import bisect
from math import factorial, sqrt, log, ceil, floor
sys.setrecursionlimit(1000000)


def main():
    #N, M = map(int, input().split())
    #N, K = map(int, input().split())
    #ps = list(map(int, input().split()))

    N = int(input())

    ds = []
    for n in range(12):
        k = 11 - n
        threshold = sum([26 ** i for i in range(k+1)])
        d = 0
        if N >= threshold:
            d = N // (26 ** k)
            N -= d * (26 ** k)
        ds.append(d)

    chars = 'abcdefghijklmnopqrstuvwxyz'
    result = ''
    for n in range(12):
        if ds[n] > 0:
            result += chars[ds[n]-1]

    print(result)

if __name__ == '__main__':
    main()
Problem p03013 (python)

Fixed submission:
#!/usr/bin/env python
import bisect
from collections import defaultdict

def main():
    N, M = map(int, input().split())
    As = set([int(input()) for i in range(M)])
    BIG_NUM = 1000000007

    current_step = 0
    prev_prev_step = 1
    if 1 in As:
        prev_step = 0
    else:
        prev_step = 1
        current_step = 1

    for i in range(2, N+1):
        if i in As:
            current_step = 0
        else:
            current_step = (prev_step + prev_prev_step) % BIG_NUM
        prev_prev_step = prev_step
        prev_step = current_step

    print(current_step)

if __name__ == '__main__':
    main()

Buggy submission (verdict: Runtime Error):
#!/usr/bin/env python
import bisect
from collections import defaultdict

def main():
    N, M = map(int, input().split())
    As = set([int(input()) for i in range(M)])
    BIG_NUM = 1000000007

    prev_prev_step = 1
    if 1 in As:
        prev_step = 0
    else:
        prev_step = 1

    for i in range(2, N+1):
        if i in As:
            current_step = 0
        else:
            current_step = (prev_step + prev_prev_step) % BIG_NUM
        prev_prev_step = prev_step
        prev_step = current_step

    print(current_step)

if __name__ == '__main__':
    main()
Problem p03041 (python)

Fixed submission:
n, k = map(int, input().split())
k -= 1
s = list(input())
s[k] = s[k].lower()
print("".join(s))

Buggy submission (verdict: Runtime Error):
n, k = map(int, input().split())
s = input()
s[k] = s[k].lower()
print(s)
Problem p02836 (python)

Fixed submission:
S = input()

result = 0
# 入力例1なら3文字目まで
for i in range(len(S) // 2):
  # sの1(2番目)がsの最後尾と一緒ならカウント
  if S[i] != S[-(i + 1)]:
    result += 1
print(result)

Buggy submission (verdict: Runtime Error):
S = input()

result = 0
入力例1なら3文字目まで
for i in range(len(S) // 2):
  # sの1(2番目)がsの最後尾と一緒ならカウント
  if S[i] != S[-(i + 1)]:
    result += 1
print(result)
Problem p02860 (python)

Fixed submission:
N = int(input())

S = input()
# 仮にn=6の場合3より後と3までが一緒ならyes
if N % 2 == 0:
   if S[:int(N/2)] == S[int(N/2):]:
       print("Yes")
   else:
       print("No")
# 奇数ならそもそもno
else:
   print("No")

Buggy submission (verdict: Runtime Error):
N = int(input())

S = input()
# 仮にn=6の場合3より後と3までが一緒ならyes
if N % 2 == 0:
   if S[:int(N/2)] == S[int(N/2):]:
       print("Yes")
   else:
       print("No")
# 奇数ならそもそもno
else:
   print("No")N = int(input())

S = input()

if N % 2 == 0:
   if S[:int(N/2)] == S[int(N/2):]:
       print("Yes")
   else:
       print("No")
      
else:
   print("No")
Problem p02723 (python)

Fixed submission:
s=input()
if s[2]==s[3] and s[4]==s[5]:
    print('Yes')
else:
    print('No')

Buggy submission (verdict: Runtime Error):
x=int(input())
happiness = 0
if x>=500:
    ans = divmod(x,500)
    happiness += 1000*ans[0]
    x = ans[1]

if x>=5:
    ans =divmod(x,5)
    happiness += 5*ans[0]

print(happiness)
Problem p02622 (python)

Fixed submission:
s = list(input())
t = list(input())

time = 0
for i in range(len(s)):
    if s[i] != t[i] :
        s[i] = t[i]
        time += 1
 
print(time)

Buggy submission (verdict: Runtime Error):
a = list(input().split())
s = a[0]
t = a[1]

s = list(s)
t = list(t)
time = 0
for i in range(len(s)):
    if s[i] != t[i] :
        s[i] = t[i]
        time += 1

print(time)
Problem p02682 (python)

Fixed submission:
a,b,c,k = map(int,input().split())


if k <= a:
    print(k)
elif a < k and k <= a + b:
    print(a)
elif a + b < k:
    print(a - (k - a - b))

Buggy submission (verdict: Runtime Error):
a,b,c,k = map(int,input().split())

s = []
s = s + [1] * a + [0] * b + [-1] * c

ans = s[:k]

print(sum(ans))
Problem p02829 (python)

Fixed submission:
a = int(input())
b = int(input())
c = [i for i in range(1,4)]
for j in range(0,len(c)):
    if c[j] != a and c[j] != b:
        print(int(c[j]))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = [i for i in range(1,4)]
for j in range(1,4):
    if c[j] != a and c[j] != b:
        print(int(c[j]))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = [i for i in range(1,4)]
for j in range(1,4):
    if c[j] != a and c[j] != b:
        print(int(c[j]))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = [i for i in range(1,4)]
for j in range(1,4):
    if c[j] != a and c[j] != b:
        print(int(c[j]))

Buggy submission (verdict: Runtime Error):
a = int(input())
b = int(input())
c = [i for i in range(1,4)]
for j in range(1,4):
    if c[j] != a and c[j] != b:
        print(int(c[j]))
Problem p02831 (python)

Fixed submission:
import fractions
a,b = map(int,input().split())
def lcm(x,y):
    return (x * y) // fractions.gcd(x,y)
print(int(lcm(a,b)))

Buggy submission (verdict: Runtime Error):
import math
a,b = map(int,input().split())
def lcm(x, y):
    return (x * y) // math.gcd(x,y)
print(int(lcm(a,b)))

Buggy submission (verdict: Runtime Error):
import math
a,b = map(int,input().split())
def lcm(x, y):
    return (x * y) // math.gcd(x, y)
print(lcm(a,b))
Problem p02835 (python)

Fixed submission:
a,b,c = map(int,input().split())
if a+b+c>=22:
  print('bust')
else:
  print('win')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
if a+b+c=>22:
  print('bust')
else:
  print('win')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
if a+b+c>=k22:
  print('bust')
else:
  print('win')

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
if a+b+c=>22:
  print('bust')
else:
  print('win')

Buggy submission (verdict: Runtime Error):
a=int(input())
b=int(input())
c=int(input())
if a+b+c>22:
  print('bust')
else:
  print('win')
Problem p02881 (python)

Fixed submission:
n = int(input())
a = [i for i in range(1,int((n)**0.5 +1))]
a.reverse()
#print(a)
for j in range(len(a)):
    if n%int(a[j]) == 0:
        print(int(int(a[j]) + n//int(a[j]) -2))
        break

Buggy submission (verdict: Runtime Error):
n = int(input())
a = [i for i in range(1,100)]
b = []
for j in range(100):
    if n%int(a[j]) == 0:
        b.append(int(a[j]) + n//int(a[j]) -2)
print(min(b))

Buggy submission (verdict: Runtime Error):
n = int(input())
a = [i for i in range(1,n+1)]
b = []
for j in range(9):
    if n%int(a[j]) == 0:
        b.append(int(a[j]) + n//int(a[j]) -2)
print(min(b))
Problem p02897 (python)

Fixed submission:
n =int(input())
a = 0.000000
b = 0.000000

for i in range(1,n+1):
    if i%2 == 0:
        a += 1
    else:
        b += 1
print('{:.10g}'.format(b/(a+b)))

Buggy submission (verdict: Runtime Error):
n = int(input())
a = list(map(int,input().split()))
b = [0 for l in range(n)]

for i in range(n):
    b[a[i]-1] = i+1
    print(b[i],end="")
    print(" ",end="")
Problem p02915 (python)

Fixed submission:
n = int(input())
print(n*n*n)

Buggy submission (verdict: Runtime Error):
N = int(input())
s = [input().split() for i in range(3)]

A = [int(i) for i in s[0]]
B = [int(i) for i in s[1]]
C = [int(i) for i in s[2]]

sum1 = sum(B)

for i in range(N-1):
 if (A[i]+1) == A[i+1]:
     sum1 += C[A[i]-1]

print(sum1)

Buggy submission (verdict: Runtime Error):
N = int(input())

s0 = list(map(int,input().split()))

s1 = list(map(int,input().split()))

s2 = list(map(int,input().split()))

sum1 = sum(s1)

for i in range(N):
  if (s0[i]+1) == s0[i+1]:
    sum1 += s2[s0[i]-1]
  else :
    sum1=sum1

print(sum1)
Problem p02951 (python)

Fixed submission:
a,b,c = map(int,input().split())
if b+c >= a:
    print(c-a+b)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
if a+c => b:
    print(b)
else:
    print(a+c)

Buggy submission (verdict: Runtime Error):
a,b,c = map(int,input().split())
if a+c => b:
    print(b)
else:
    pritn(a+c)
Problem p02659 (python)

Fixed submission:
S = input().split()
import decimal
x = decimal.Decimal(S[0])
y = decimal.Decimal(S[1])

print(int(x*y))

Buggy submission (verdict: Runtime Error):
S = input().split()
x = int(S[0])
y = float(S[1]) * 100

print(((x*y)//100)

Buggy submission (verdict: Runtime Error):
x, y = map(int, input().split())
print(round(x*y))
Problem p02753 (python)

Fixed submission:
S = input()
if S == "AAA" or S == "BBB":
  print("No")
else:
  print("Yes")

Buggy submission (verdict: Runtime Error):
S = int(input())
if N == AAA or N == BBB:
  print(No)
else:
  print(Yes)
Problem p02766 (python)

Fixed submission:
n, k = list(map(int, input().split()))
ans = 0
while True:
    n = n // k
    ans += 1
    if n == 0:
        break
print(ans)

Buggy submission (verdict: Runtime Error):
n, k = list(map(int, input().split()))
ans = 0
while True:
    l.append(n % k)
    n = n // k
    if n // k == 0:
        l.append(n % k)
        break
ans = len(l)
print(ans)

Buggy submission (verdict: Runtime Error):
n, k = list(map(int, input().split()))
ans = 0
# while True:
#     n = n // k
#     ans += 1
#     if n == 0:
#         break
# print(ans)


if k == 10:
    ans = len(str(n))
else:
    l = []
    while True:
    n = n // k
    ans += 1
    if n == 0:
        break
print(ans)

Buggy submission (verdict: Runtime Error):
n, k = list(map(int, input().split()))
ans = 0
while True:
    n = n // k
    ans += 1
        if  == 0:
            break
print(ans)