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

Fixed submission:
print(6-int(input())-int(input()))

Buggy submission (verdict: Runtime Error):
lis = [1,2,3]
print(lis.remove(input()).remove(input())[0])

Buggy submission (verdict: Runtime Error):
lis = [1,2,3]
print(lis.remove(input()).remove(input()))
Problem p02831 (python)

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

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

Buggy submission (verdict: Runtime Error):
import math
def lcm(x, y):
    return (x * y) // math.gcd(x, y)

A, B = a,b=map(int,input().split())
print(lcm(A, B))
Problem p03329 (python)

Fixed submission:
INF = 10 ** 20

N = int(input())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(N+1)
dp[0] = 0
 
for coin in coin_list:
    for i in range(coin,N+1):
        dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[N])

Buggy submission (verdict: Runtime Error):
INF = 10 ** 20
 
N = int(input())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(N+1)
dp[0] = 0
 
for i in range(1,N+1):
	for coin in coin_list:
    	if i-coin >= 0: dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[N])

Buggy submission (verdict: Runtime Error):
INF = 10 ** 20
 
N = int(input())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(N+1)
dp[0] = 0

for i in range(coin,N+1):
	for coin in coin_list:
    	if i-coin >= 0: dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[N])

Buggy submission (verdict: Runtime Error):
INF = 10 ** 20
 
N = int(input())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(N+1)
dp[0] = 0

for i in range(coin,N+1):
    for coin in coin_list:
        dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[N])

Buggy submission (verdict: Runtime Error):
INF = 10 ** 20

N = int(input())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(W+1)
dp[0] = 0
 
for coin in coin_list:
    for i in range(coin,W+1):
        dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[W])

Buggy submission (verdict: Runtime Error):
INF = 10 ** 20

W,N = map(int,input().split())
coin_list = [1] + [6**i for i in range(1, 7)] + [9**i for i in range(1, 6)]
dp = [INF]*(W+1)
dp[0] = 0
 
for coin in coin_list:
    for i in range(coin,W+1):
        dp[i] = min(dp[i], dp[i-coin]+1)
 
print(dp[W])
Problem p03631 (python)

Fixed submission:
N = input()
print (["No","Yes"][N[0] == N[2]])

Buggy submission (verdict: Runtime Error):
import fractions
t=1
for i in range(int(input())):
    s = int(input())
    t = t*s//fractions.gcd(s,t)
print(t)

Buggy submission (verdict: Runtime Error):
A,B, C, D = map(int,input().split())
if A <= C and min(D, B)-C >= 0:
    print(min(D, B)-C)
elif A > C and min(D, B)-A >= 0:
    print(min(D, B)-A)
else:
    print(0)

Buggy submission (verdict: Runtime Error):
N = input()
print (["No","Yes"][N[0] == N[2])

Buggy submission (verdict: Runtime Error):
N = int(input())
print (["No","Yes"][N[0] == N[2])

Buggy submission (verdict: Runtime Error):
N = int(input())
print (["Yes", "No"][N[0]!=N[1])
Problem p02879 (python)

Fixed submission:

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

if (i[0] <= 9 and i[1] <= 9):
	print(i[0] * i[1])
else:
	print("-1");

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=0
for i in range(1,10):
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
      break
if c==1:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=0
for i in range(1,10):
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
      break
if c==1:
  print("Yes")
else
  print("No")
Problem p02880 (python)

Fixed submission:
a=int(input())
b=0
c=0
for i in range(1,10):
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
      break
if c==1:
  print("Yes")
else:
  print("No")

Buggy submission (verdict: Runtime Error):
a=int(input())
b=0
c=0
for i in range(1,10)
  if a%i==0:
    b=a/i
    if b<=9:
      c=1
if c==1:
  print("Yes")
else
  print("No")
Problem p02659 (python)

Fixed submission:
A = input().split()
a = int(A[0])
b = int(A[1].replace(".", ""))
print(0 if str(a*b)[:-2] == '' else str(a*b)[:-2])

Buggy submission (verdict: Runtime Error):
A = input().split()
a = int(A[0])
b = int(float(A[1]) * 100)
print((a*b)/100))
Problem p02676 (python)

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

Buggy submission (verdict: Runtime Error):
n = int(input())
s = input()
l = len(s)
if len <= n:
    print(s)
else:
    print(s[:n] + '...')
Problem p02682 (python)

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

cards = k
sum = 0

while (True):
    if cards > a:
        sum += a
        cards -= a
        if cards > b:
            sum += 0
            cards -= b
            if cards > c:
                sum -= c
                cards -= b
            else:
                sum -= cards
                print(sum)
                break
        else:
            print(sum)
            break

    else:
        sum += cards
        print(sum)
        break

Buggy submission (verdict: Runtime Error):

a, b, c, k = map(int, input().split())
cards = 0
sum = 0

if k >=a:
  sum = sum + a * 1
  cards = k - a
  if k >= b:
    sum += 0
    cards = cards + b
    if k >= c:
    	sum -= 1
    	cards = cards + c
    	print(sum)
    else:
      sum = sum + (k - cards) * -1
      print(sum)
    
    if k  
  else:
    print(sum)
else:
  sum = sum + k * 1
  print(sum)
Problem p02712 (python)

Fixed submission:
n = int(input())
l = [i for i in range(1, n + 1)]
nl = []

for a in l:
    if (a % 5 != 0) and (a % 3 != 0):
        nl.append(a)

print(sum(nl))

Buggy submission (verdict: Runtime Error):
 = int(input())
l = [i for i in range(1, n+1)]
nl = []
    
for a in l:
     if a%15 != 0 or a%5 != 0 or a%3 != 0:
     	nl.append(a)
print(sum(nl))

Buggy submission (verdict: Runtime Error):

n = int(input())
l = [i for i in range(1, n+1)
nl = []
    
for a in l:
     if a%15 != 0 or a%5 != 0 or a%3 != 0:
     	nl.append(a)
print(sum(nl))
Problem p02659 (python)

Fixed submission:
a, b = [float(s) for s in input().split(" ")]
a = int(a)
b = round(b*100)
print(a*b//100)

Buggy submission (verdict: Runtime Error):
a, b = [float(s) for s in input().split(" ")]
a = int(a)
b = round(b*100)
print(a*b//100))
Problem p02661 (python)

Fixed submission:
n = int(input())
A = []
B = []
for _ in range(n):
    v1, v2 = list(map(int, input().split(' ')))
    A.append(v1)
    B.append(v2)

A.sort()
B.sort()

if n % 2:
    print(B[n//2] - A[n//2] + 1)
else:
    print((B[n//2]+B[n//2-1]) - (A[n//2]+A[n//2-1]) + 1)

Buggy submission (verdict: Runtime Error):
n = int(input())
A = []
B = []
for _ in range(n):
    v1, v2 = list(map(int, input().split(' ')))
    A.append(v1)
    B.append(v2)

A.sort()
B.sort()

if n % 2:
    print(B[n//2] - A[n//1] + 1)
else:
    print((B[n//2]+B[n//2-1]) - (A[n//2]+A[n//2-1]) + 1)
Problem p02693 (python)

Fixed submission:
K = int(input())
a,b = map(int,input().split())
c = 'NG'
for i in range(a,b+1):
  if i % K == 0:
    c = 'OK'
    break
print(c)

Buggy submission (verdict: Runtime Error):
K = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
  if i%K == 0:
  print('OK')
  else:
  print('No')
  return

Buggy submission (verdict: Runtime Error):
K = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
  if i%K == 0:
  print('OK')
  else:
  print('No')

Buggy submission (verdict: Runtime Error):
K = int(input())
a,b = map(int,input().split())
for i in range(a,b+1):
  if i%K == 0:
  print('OK')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
K = int(input())
a,b = map(int,input().split())
for i in range(a,b+1)
if i%K == 0
  print('OK')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
K = int(input())
A,B = map(int,input().split())
for i in range(a,b+1)
if i%K == 0
  print('OK')
else:
  print('No')
Problem p02699 (python)

Fixed submission:
S,W = map(int,input().split())
if S > W:
  print('safe')
else:
  print('unsafe')

Buggy submission (verdict: Runtime Error):
a,b= map(int,imput().split())
c = 'unsafe'
if a>b:
  c = 'safe'
print(c)
Problem p02711 (python)

Fixed submission:
n = input()
if '7' in n :
  print('Yes')
else :
  print('No')

Buggy submission (verdict: Runtime Error):
n = input()
if 7 in n :
  print('Yes')
else :
  print('No')

Buggy submission (verdict: Runtime Error):
N = input()
a = N[0]
b = N[1]
c = N[2]
d = 'No'
for i in (a,b,c):
  if i % 7 == 0:
    d ='Yes'
    break
print(d)
Problem p02723 (python)

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

Buggy submission (verdict: Runtime Error):
N = input()
if N[3] == N[4] and N[5] == N[6]:
  print('Yes')
else:
  print('No')
Problem p02753 (python)

Fixed submission:
N = input()
if 'A' in N  and 'B' in N:
  print('Yes')
else:
  print('No')

Buggy submission (verdict: Runtime Error):
N = input()
if N in A and N in B:
  print('Yes')
else:
  print('No')
Problem p02766 (python)

Fixed submission:
src = list(map(int, input().split()))

digit = 1
while src[1] ** digit - 1 < src[0]:
    digit += 1

print(digit)

Buggy submission (verdict: Runtime Error):
rc = list(map(int, input().split()))

digit = 1
while src[1] ** digit - 1 < src[0]:
    digit += 1

print(digit)
Problem p02659 (python)

Fixed submission:
a,b=input().split()
a=int(a)
b=b.replace(".","")
b=int(b)
print(a*b//100)

Buggy submission (verdict: Runtime Error):
a,b=input().split()
a=int(a)
b=int(float(b*100))
print(a*b//100)
Problem p02753 (python)

Fixed submission:
S = input()

zikkou= [0,2]

isto = True

for n in zikkou:
    if S.count("A") == 3 or S.count("B") == 3:
        isto = False


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

Buggy submission (verdict: Runtime Error):
a
Problem p02777 (python)

Fixed submission:
S, T = input().split()
A, B = input().split()
U = str(input())
S = str(S)
T = str(T)
A = int(A)
B = int(B)


if S == U:
    print(A-1,B)
elif T == U:
    print(A,B-1)

Buggy submission (verdict: Runtime Error):
_S, _T = input().split()
A, B = list(map(lambda x:int(x)), input().split())
U = input()


if U == A:
    is_type_A = True
else:
    is_type_A = False

if is_type_A:
    print(A - 1, B)
else:
    print(A, B-1)
Problem p02847 (python)

Fixed submission:
usrInput = input()

if usrInput == "SUN":
    DayPlace = 0
elif usrInput == "MON":
    DayPlace = 1
elif usrInput == "TUE":
    DayPlace = 2
elif usrInput == "WED":
    DayPlace = 3
elif usrInput == "THU":
    DayPlace = 4
elif usrInput == "FRI":
    DayPlace = 5
elif usrInput == "SAT":
    DayPlace = 6

finalOutput = 7 - DayPlace
print(finalOutput)

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

if usrInput == "SUN":
    DayPlace = 0
elif usrInput == "MON":
    DayPlace = 1
elif usrInput == "TUE":
    DayPlcae = 2
elif usrInput == "WED":
    DayPlace = 3
elif usrInput == "THU":
    DayPlace = 4
elif usrInput == "FRI":
    DayPlace = 5
elif usrInput == "SAT":
    DayPlace = 6

finalOutput = 7 - DayPlace
print(finalOutput)
Problem p02859 (python)

Fixed submission:
usrInput = input()
print(int(usrInput) ** 2)

Buggy submission (verdict: Runtime Error):
usrInput = input()
print(int(usrinput) ** 2)
Problem p02879 (python)

Fixed submission:
usrInput = input()
splitedInput = usrInput.split()
clearFlag = []

for i in range(2):
    if int(splitedInput[i]) < 10:
        clearFlag.append(True)
    else:
        clearFlag.append(False)

if bool(clearFlag[0]) == True and bool(clearFlag[1]) == True:
    print(int(splitedInput[0]) * int(splitedInput[1]))
else:
    print(-1)

Buggy submission (verdict: Runtime Error):
import math

rawUsrInput = input()
usrInput = rawUsrInput.split()

a = int(usrInput[0])
b = int(usrInput[1])
x = int(usrInput[2])

print(((math.degrees(math.acos(((2*x)/a*b)/(math.sqrt(((4*x*x)/a*a*b*b)+b*b)))))))

Buggy submission (verdict: Runtime Error):
import math

rawUsrInput = input()
usrInput = rawUsrInput.split()

a = int(usrInput[0])
b = int(usrInput[1])
x = int(usrInput[2])

print(str(((math.degrees(math.acos((b)/(math.sqrt(4*x*x/(a*a*b*b)+b*b))))))))

Buggy submission (verdict: Runtime Error):
import math

rawUsrInput = input()
usrInput = rawUsrInput.split()

a = int(usrInput[0])
b = int(usrInput[1])
x = int(usrInput[2])

print(90 - float(math.degrees(math.acos((b)/(math.sqrt((4*x**2)/(a**2*b**2)+b**2))))))

Buggy submission (verdict: Runtime Error):
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
usrInput = input()
splitedInput = usrInput.split()
clearFlag = True

for i in range(2):
    if splitedInput[i] > 9:
        clearFlag[i] = False

if clearFlag[0] == True & clearFlag[1] == True:
    print(splitedInput[0] + splitedInput[1])
else:
    print(-1)

Buggy submission (verdict: Runtime Error):
usrInput = input()
splitedInput = (usrInpuy.split( ))
clearFlag = True

for i in range(2):
  if splitedInput[i] > 9:
    clearFlag[i] = False

if clearFlag[0] == True && clearFlag[1] == True:
  print(splitedInput[0] + splitedInput[1])
else:
  print(-1)
Problem p02880 (python)

Fixed submission:
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9 and anotherDivisor > 0 and int(divisor[x]) > 0:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9 and anotherDivisor > 0 and int(divisor[x]) > 0:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
usrInput = input()
divisor = []
flag = []
finalFlag = False

for kuku in range(9):
    currentDivisor = kuku+1
    if int(usrInput) % currentDivisor == 0:
        divisor.append(currentDivisor)

for x in range(len(divisor)):
    anotherDivisor:float = int(usrInput) / divisor[x]
    if float.is_integer(anotherDivisor) == True and anotherDivisor <= 9:
        flag.append(True)
    else:
        flag.append(False)

for n in range(len(divisor)):
    if bool(flag[n]) == True:
        finalFlag = True

if finalFlag == True:
    print("Yes")
else:
    print("No")
Problem p03075 (python)

Fixed submission:
usrInput = []
flag = False
for n in range(6):
    usrInput.append(int(input()))

for l in range(5):
    for m in range(5):
        if abs(int(usrInput[l]) - int(usrInput[m])) > usrInput[5]:
            flag = True

if flag:
    print(":(")
else:
    print("Yay!")

Buggy submission (verdict: Runtime Error):
usrInput = []
for n in range(6):
  usrInput.append(int(input()))
 
for l in range(5):
  for m in range(5):
    if abs(int(usrInput[l])-int(usrInput[m])) > usrInput[5]:
      flag = True
 
if flag:
  print(":(")
else:
  print("Yay!")

Buggy submission (verdict: Runtime Error):
usrInput = {}
for n in range(6):
  append.usrInput = input()

for l in range(5):
  for m in range(5):
    if abs(int(usrInput[l])-int(usrInput[m])) > usrInput[6]:
      flag = True

if flag:
  print(":(")
else:
  print("Yay!")
Problem p02676 (python)

Fixed submission:
k = int(input())
s = input()
if int(len(s)) <= k:
  	print(str(s))
else:
  	print(((str(s))[0:k]) + "...")

Buggy submission (verdict: Runtime Error):
k = int(input())
s = input()
if int(len(s)) <= k:
  	print(str(s))
else:
  	print(((str(s))[0:k])

Buggy submission (verdict: Runtime Error):
k = int(input())
s = input()
l = len(s)
if l <= k:
	print(s)
else: 
  	print(s[0:k]"...")

Buggy submission (verdict: Runtime Error):
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k]"...")

Buggy submission (verdict: Runtime Error):
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w = input()
l = len(w)
if l <= k:
	print(w)
else:
    print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w = input()
l = len(w)
if l <= k:
 	 print(w)
else:
   	 print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w= input()
l = len(w)
if l <= k:
	print(w)
else:
	print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w= input()
l = len(w)
if l <= k:
 	 
    print(w)
else:
   	 print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w= input()
l = len(w)
	if l <= k:
 	 print(w)
  	else:
   	 print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
w= input()
l = len(str)
	if l <= k:
  print(str)
  	else:
    print(w[:k])

Buggy submission (verdict: Runtime Error):
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[:k])

Buggy submission (verdict: Runtime Error):
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[:k])

Buggy submission (verdict: Runtime Error):
k = input()
str = input()
l = len(str)
if l <= k:
  print(str)
  else:
    print(s[1:k])
Problem p02659 (python)

Fixed submission:
from decimal import Decimal
A,B=input().split()
print(int(Decimal(A)*Decimal(B)))

Buggy submission (verdict: Runtime Error):
A,B=map(float,input(),split())
C=B*1000
print(A*C//1000)
Problem p02682 (python)

Fixed submission:
A,B,C,K=map(int,input().split())
if K<=A:
  print(K)
elif A<K<=A+B:
  print(A)
elif A+B<K<=A+B+C:
  print(2*A+B-K)

Buggy submission (verdict: Runtime Error):
A,B,C,A,B,C,K=map(int,input().split())
if K<=A:
  print(K)
elif A<K<=A+B:
  print(A)
elif A+B<K<=A+B+C:
  print(2*A+B-K)
Problem p02676 (python)

Fixed submission:
K=int(input())
S=input()

if len(S) <= K:
    print(S)
else :
    print(S[0:K]+"...")

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

if len(S) <= K:
    print(S)
else :
    print(S[0:K]+"...")
Problem p02659 (python)

Fixed submission:
import math
from decimal import Decimal

A, B = map(Decimal, input().split())
mul = A * B
mul2 = math.floor(mul)
print(mul2)

Buggy submission (verdict: Runtime Error):
import math
A, B = map(double, input().split())
B *= 1000
mul = A * B
mul2 = math.floor(mul//1000)
print(mul2)
Problem p02659 (python)

Fixed submission:

import math
from decimal import *

A,B=input().split()
print(math.floor(Decimal(A)*Decimal(B)))

Buggy submission (verdict: Runtime Error):
A,B=input().split()
print(math.floor(int(A)*float(B)))

Buggy submission (verdict: Runtime Error):
A,B=input().split()
print(math.floor(int(A)*float(B)))

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

if isinstance(B,int):
    B = int(B)
else:
    B = float(B)
print(math.floor(A*B))
Problem p02831 (python)

Fixed submission:
# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c

import fractions

# 最小公倍数を求める問題
A,B = map(int,input().split())

print((A * B) // fractions.gcd(A, B))

Buggy submission (verdict: Runtime Error):
# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c

import math

# 最小公倍数を求める問題
A,B = map(int,input().split())

print(A * B // math.gcd(A, B))

Buggy submission (verdict: Runtime Error):
# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c

import math

# 最小公倍数を求める問題
A,B = map(int,input().split())

print(int(A * B / math.gcd(A, B)))

Buggy submission (verdict: Runtime Error):
# C - Snack
# https://atcoder.jp/contests/abc148/tasks/abc148_c

import math

# 最小公倍数を求める問題
A,B = map(int,input().split())

print(A * B // math.gcd(A, B))
Problem p02881 (python)

Fixed submission:
# C - Walk on Multiplication Table
# https://atcoder.jp/contests/abc144/tasks/abc144_c

import math

n = int(input())
sqr = int(math.sqrt(n)) + 1
for i in range(sqr, 0, -1):
         if (n % i) == 0:
            print(i + (n//i) - 2)
            exit()

Buggy submission (verdict: Runtime Error):
# C - Welcome to AtCoder
# https://atcoder.jp/contests/abc151/tasks/abc151_c

n,m = map(int,input().split())
submits = [list(input().split()) for i in range(0,m)]

ac = 0
wa = 0

AC = "AC"
WA = "WA"

tmp_wa = 0
tmp_ac = []


for i in range(len(submits)):
    # ACなら正解数をカウントアップ
    if submits[i][1] == AC:
        # 同じ問題に正解してないかチェック
        if submits[i] in tmp_ac:
            # tmp_ac = submits[i]
            continue
        ac += 1
        # WAの数をカウント
        wa += tmp_wa
        # WAを初期化
        tmp_wa = 0
        tmp_ac.append(submits[i])
    else:
        # WAならwa+1
        tmp_wa += 1

print(str(ac) + " " + str(wa))
Problem p02711 (python)

Fixed submission:
n = int(input())
a = n//100
b = (n-a*100)//10
c = n-a*100-b*10
if (a == 7)or(b == 7)or(c == 7):
    print("Yes")
else:
    print("No")

Buggy submission (verdict: Runtime Error):
a = list(int(input()))
if 7 in a == True:
  print("Yes")
else:
  print("No")
Problem p02723 (python)

Fixed submission:
a,b,c,d,e,f = input()
if (c==d) and (e==f) : print("Yes")
else : print("No")

Buggy submission (verdict: Runtime Error):
a,b,c,d,e,f = input()
if (c==d) and (e==f) : print("Yes")
else print("No")

Buggy submission (verdict: Runtime Error):
cin >>> a,b,c,d,e,f;
if c=d and e=f : cout <<< "Yes"
else : cout <<< "No"
Problem p02729 (python)

Fixed submission:
N,M = map(int,input().split())
a = int((N*(N-1))/2+(M*(M-1))/2)
print(a)

Buggy submission (verdict: Runtime Error):
a,b = map(int,input().)
Problem p02699 (python)

Fixed submission:
s,w = map(int,input().split())
if w >= s:
    print("unsafe")
else:
    print("safe")

Buggy submission (verdict: Runtime Error):
s = int(input())
w = int(input())
if w >= s:
    print("unsafe")
else:
    print("safe")

Buggy submission (verdict: Runtime Error):
s,w = map(int, user_input().split())
if w >= s:
	print("unsafe")
else:
	print("safe")

Buggy submission (verdict: Runtime Error):
S, W = map(int, raw_input().split())
if S >= W:
  print("unsafe")
else:
  print("safe")
Problem p02723 (python)

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

Buggy submission (verdict: Runtime Error):
x = int(input())
a = int((x//500)*1000)
b = int(((x-(x//500)*500)//5)*5)
print(int(a+b))
Problem p02777 (python)

Fixed submission:
s,t = map(str,input().split())
a,b = map(int,input().split())
u = str(input())
if u == s:
  print('{} {}'.format(a-1,b))
else:
  print('{} {}'.format(a,b-1))

Buggy submission (verdict: Runtime Error):
s,t = map(str,input().split())
a,b = map(int,input().split())
u = str(input())
if u == s:
  print(int(a-1) int(b))
else:
  print(int(a) int(b-1))