qyliang/CodeNanoFix huggingface dataset:
Buggy code:
import sys
import math

from decimal import *

def solve(A: int, B: float):
    # a = Decimal(A)
    # b = Decimal(B)
    print(math.floor(Decimal(a * b)))
    return
    # if len(str(B)) == 3:
    #     if str(B)[2] == 0:
    #         print(math.floor(a*b))
    #         return
    #     ans = A * int(str(B)[0])
    #     ans += Decimal(a * int(str(B)[2]) / 10)
    #     print(math.floor(ans))
    #     return

    # if len(str(B)) == 4:
    #     ans = A * int(str(B)[0])
    #     ans += Decimal(A * int(str(B)[2]) / 10)
    #     ans += Decimal(A * int(str(B)[3]) / 100)
    #     print(math.floor(ans))
    #     return
    # return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = float(next(tokens))  # type: float
    solve(A, B)

if __name__ == '__main__':
    main()


Fixed code:
#!/usr/bin/env python3
import sys
import math

from decimal import *

def solve(A: int, B: float):
    a = Decimal(A)
    b = Decimal(B)
    # print(math.floor(a * b))
    # return
    if len(str(B)) == 3:
        if str(B)[2] == 0:
            print(math.floor(a*b))
            return
        ans = A * int(str(B)[0])
        ans += Decimal(a * int(str(B)[2]) / 10)
        print(math.floor(ans))
        return

    if len(str(B)) == 4:
        ans = A * int(str(B)[0])
        ans += Decimal(A * int(str(B)[2]) / 10)
        ans += Decimal(A * int(str(B)[3]) / 100)
        print(math.floor(ans))
        return
    return


# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = float(next(tokens))  # type: float
    solve(A, B)

if __name__ == '__main__':
    main()
Buggy code:
##C
A,B = map(float,input().split())
A = int(A)
B = B.replace('.','')
print((A*B)//100)

Fixed code:
##C
A,B = map(str,input().split())
A = int(A)
B = int(B.replace('.',''))
print((A*B)//100)
Buggy code:
import math
a,b = map(str,input().split())
a = int(a)
b_ =str()
for i in b:
    if(i != "."):
        b_ = b_ +i
# print(b_)
ans = (a*b_)//100
print(ans)

Fixed code:
import math
a,b = map(str,input().split())
a = int(a)
b_ =str()
for i in b:
    if(i != "."):
        b_ = b_ +i
# print(b_)
b_ = int(b_)
ans = (a*b_)//100
print(ans)
Buggy code:
# -*- coding: utf-8 -*-
A,B = input().split()
A = int(A)
B_i, B_d = B.split('.')
B_i = int(B_i)
# calc b_d
B_d = list(B_d)
B_100 = 100*B_i + int(B_d[0])*10 + int(B_d[1])

result_100 = A * B_100
print(result_100, int(A)*float(B)*100)


if result_100 >= 100:
    print(str(result_100)[:-2])
else:
    print(0)

Fixed code:
# -*- coding: utf-8 -*-
A,B = input().split()
A = int(A)
B_i, B_d = B.split('.')
B_i = int(B_i)
# calc b_d
B_d = list(B_d)
B_100 = 100*B_i + int(B_d[0])*10 + int(B_d[1])

result_100 = A * B_100

if result_100 >= 100:
    print(str(result_100)[:-2])
else:
    print(0)
Buggy code:
a, b = input().strip().split()
a, b = [int(a), float(b)]
ans = (a * b * 100 // 100)
# ans = int(a * b)
print(ans)


Fixed code:
a, b = input().strip().split()
a, b = [int(a), float(b)]
ans = int(a * round(b * 100) // 100)
# ans = int(a * b)
print(ans)
Buggy code:
def main():
    a,b = float, input().split()
    a = int(a)
    b = int(float(b)*100)
    print(a*b//100)
if __name__ == "__main__":
    main()

Fixed code:
def main():
    a,b = input().split()
    a = int(a)
    b = int(b.replace('.', ''))
    print(a*b//100)
if __name__ == "__main__":
    main()
Buggy code:
def main(*, int=int, input=input):
    a, b = map(float, input().split())
    bi = int(b*100)
    ai = int(a*100)
    x = ai*bi
    x = x // 100
    print(x)

if __name__ == "__main__":
    import io, sys
    if "_INPUT" in locals():
        sys.stdin = io.StringIO(_INPUT)
    main()

Fixed code:
def main(*, int=int, input=input):
    a, b = map(float, input().split())
    bi = round(b*100)
    ai = int(a)
    x = ai*bi
    x = x // 100
    print(x)

if __name__ == "__main__":
    import io, sys
    if "_INPUT" in locals():
        sys.stdin = io.StringIO(_INPUT)
    main()
Buggy code:
a, b = map(str, input().split())
b1, b2 = b.split('.')
bb = int(b1) * 100 + int(b2)
print(int((a *bb)/100))

Fixed code:
a, b = map(str, input().split())
a = int(a)
b1, b2 = b.split('.')
b = int(b1) * 100 + int(b2)
ans = a * b
print(ans//100)
Buggy code:
from decimal import Decimal

# t = '1000000000000000 9.99'

a = list(map(Decimal, t.split()))

print(int(a[0]*a[1]))

Fixed code:
from decimal import Decimal

# t = '1000000000000000 9.99'
a = list(map(Decimal, input().split()))
# a = list(map(Decimal, t.split()))

print(int(a[0]*a[1]))
Buggy code:
from math import floor
a, b = [i for i in input().split()]
p = int(b[0] + b[2] + b[3])
print(a * p // 100)


Fixed code:
from math import floor
a, b = [i for i in input().split()]
p = int(b[0] + b[2] + b[3])
print(int(a) * p // 100)
Buggy code:
A,B =map(str,input().split())
A=int(A)
B.replace(',','')
B =int(B)
ans = A*B//100
print(ans)

Fixed code:
A,B =map(str,input().split())
A=int(A)
B =B.replace('.','')
B =int(B)
ans = A*B//100
print(ans)
Buggy code:
n, m =map(float,input().split()) 

n =int(n)
m =round( m *100)
ans = n * m / 100
print(round(ans))

Fixed code:
n, m =map(float,input().split()) 

n =int(n)
m =round( m *100)
ans = n * m // 100
print(round(ans))
Buggy code:
a,b =  input().split()
a=int(a);b,d=map(int,b.spit('.'))
print(a*b+a*d//100)

Fixed code:
a,b =  input().split()
a=int(a);b,d=map(int,b.split('.'))
print(a*b+a*d//100)
Buggy code:
a ,b = map(float, input().split()) 
a = int(a)
b = b*1000
print((a*b)//1000)

Fixed code:
a,b=map(float,input().split())
a=int(a)
b=int(b*1000)
print((a*b)//1000)
Buggy code:
from math import floor
from decimal import Decimal
a,b = map(Dicimal, input().split())
c = a*b
print(c)

Fixed code:
from math import floor
from decimal import Decimal
a,b = map(Decimal, input().split())
c = a*b
print(floor(c))
Buggy code:
a, b = input().split()

a_1 = int(a)
a_10 = a_1 // 10
a_100 = a_1 // 100

b_1 = int(b[0])
b_10 = int(b[2])
b_100 = int(b[3])

ans = a_1 * b_1
ans += (a_1 * b_10) // 10
ans += (a_1 * b_100) // 100

print(ans//100)

Fixed code:
a, b = input().split()

a_1 = int(a)

b_1 = int(b[0])*100
b_10 = int(b[2])*10
b_100 = int(b[3])

ans = a_1 * b_1
ans += (a_1 * b_10)
ans += (a_1 * b_100)

print(ans//100)
Buggy code:
a,b=map(str, input().split())
A = int(a)
B = 100*int(b[0])+10*int(b[1])+int(b[2])
ans = A*B / 100
print(int(ans))


Fixed code:
a,b=map(str, input().split())
A = int(a)
B = 100*int(b[0])+10*int(b[2])+ 1*int(b[3])
ans = A*B // 100
print(ans)
Buggy code:
import math
from decimal import *
getcontext().prec = 28
a,b=map(str, input().split())
#a_ = Decimal(a)
#b_ = Decimal(b)
a = int(a)
b = float(b)*100
#print(round(Decimal(Decimal(a)*Decimal(b))))
print((a*b)//100)
#print(math.floor(Decimal(a)*Decimal(b)/Decimal(100.0)))

Fixed code:
import math
from decimal import *
getcontext().prec = 28
a,b=map(str, input().split())
a_ = Decimal(a)
b_ = Decimal(b)
#b = b*100
#print(round(Decimal(Decimal(a)*Decimal(b))))
print(math.floor(a_*b_))
#print(math.floor(Decimal(a)*Decimal(b)/Decimal(100.0)))
Buggy code:
A, B = map(float, input().split())
A = int()
B *= 1000
B = int()
ans = A * B

print(ans//1000)


Fixed code:
A, B = map(float, input().split())
A = int(A)
B *= 1000
B = int(B)
ans = A * B

print(ans//1000)
Buggy code:
a,b=input().split()
a=int(a)
b=b[0]+b[2:]
print(int(a*b/100))

Fixed code:
a,b=map(str,input().split())
a=int(a)
b=int(b[0]+b[2:])
print(int(a*b//100))
Buggy code:
A, B = input().split()
A = int(A)
B = int(float(B)*100)
print(A*B/100)

Fixed code:
A, B = input().split()

A = int(A)

B = float(B)
B *= 100
B = round(B)

print(int(A * B // 100))
Buggy code:
#a, b = map(float, input().split())

a, b = input().split()

from decimal import Decimal
import math
print(math.floor(int(a)*Decimal(b))


Fixed code:
#a, b = map(float, input().split())

a, b = input().split()
from decimal import Decimal
import math
print(math.floor(int(a)*Decimal(b)))
Buggy code:
A,B=map(float,input().split())
A =int(A)
B=int(100*B)
print(A*B/100)

Fixed code:
A,B=map(float,input().split())
A =int(A)
B=round(100*B)
print(A*B//100)
Buggy code:
A, B = input().split()

A = int(A)
B_float = int(B[2:])
B_int = int(B[0]) * 100

res = A * B // 100

print(int(res))

Fixed code:
A, B = input().split()

A = int(A)
B_float = int(B[2:])
B_int = int(B[0]) * 100

res = A * (B_int + B_float) // 100

print(int(res))
Buggy code:
from sys import stdin
input = stdin.readline

a, b = map(str, input().split())
a = int(a)
b = int(float(b + 0.001) * 100)
ans = int(a * b // 100)
print(ans)


Fixed code:
from sys import stdin
input = stdin.readline


a, b = map(str, input().split())
a = int(a)
b = int((float(b) + 0.001) * 100)
ans = int(a * b // 100)
print(ans)
Buggy code:
a, b = map(str,input().split())
from decimal import *
int(Decimal(a) * Decimal(b))


Fixed code:
a, b = map(str,input().split())
from decimal import *
print(int(Decimal(a) * Decimal(b)))
Buggy code:
from decimal import *

def main():
    a, b = input().split()
    a = Decimal(a)
    b = Decimal(b)
    print(a * b)





if __name__ == "__main__":
    main()


Fixed code:
from decimal import *

def main():
    a, b = input().split()
    a = Decimal(a)
    b = Decimal(b)
    print(int(a * b))





if __name__ == "__main__":
    main()
Buggy code:
a,b = input().split()
a = int(a)
b = int(b.replace(".","")
print(a*b//100)

Fixed code:
a, b = input().split()

a = int(a)
b = int(b.replace(".", ""))

ans = a * b // 100
print(ans)
Buggy code:
def main():
    A, B = input().split()
    A = int(A)
    B_big, B_small = B.split(".")
    B_big = int(B_big)
    B_small = int(B_small)
    print(A*B + int(A*B_small/100))


if __name__ == "__main__":
    main()


Fixed code:
def main():
    A, B = input().split()
    A = int(A)
    B_big, B_small = B.split(".")
    B_big = int(B_big)
    B_small = int(B_small)
    print(A*B_big + A*B_small//100)


if __name__ == "__main__":
    main()
Buggy code:

a, b = input().strip().split()
a = int(a)
print(b.split("."))
b=b.split(".")
b1=int(b[0])*100 + int(b[1])
print(a*b1//100)


Fixed code:

a, b = input().strip().split()
a = int(a)
# print(b.split("."))
b=b.split(".")
b1=int(b[0])*100 + int(b[1])
print(a*b1//100)
Buggy code:
a, b = [s for s in input().split(" ")]
a = int(a)
b = round(float(b))*100
print(int((a*b)/100))

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


Fixed code:
a,b = input().split()
a = int(a)
b = round(float(b)*100)
print((a*b)//100)
Buggy code:
A, B = input().split()
print(int(A) * int(B[0] + B[1] + B[2] + B[3]) // 100)

Fixed code:
A, B = input().split()
print(int(A) * int(B[0] + B[2] + B[3]) // 100)
Buggy code:
from decimal import Decimal
a,b=list(map(decimal,input().split()))
print(int(a*b))


Fixed code:
from decimal import Decimal
a,b=list(map(Decimal,input().split()))
print(int(a*b))
Buggy code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import breadth_first_order, depth_first_order, shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_matrix
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import sys

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

ni = lambda: int(ns())
nf = lambda: float(ns())
na = lambda: list(map(int, stdin.readline().split()))
nb = lambda: list(map(float, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

A, B = nb()
A = int(A)
B = int(100 * B)
print(A * B /100)


Fixed code:
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time, copy,bisect
#from operator import itemgetter
#from heapq import heappush, heappop
#import numpy as np
#from scipy.sparse.csgraph import breadth_first_order, depth_first_order, shortest_path, floyd_warshall, dijkstra, bellman_ford, johnson
#from scipy.sparse import csr_matrix
#from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
import sys

sys.setrecursionlimit(10**7)
inf = 10**20
mod = 10**9 + 7

stdin = sys.stdin

ni = lambda: int(ns())
nf = lambda: float(ns())
na = lambda: list(map(int, stdin.readline().split()))
nb = lambda: list(map(float, stdin.readline().split()))
ns = lambda: stdin.readline().rstrip()  # ignore trailing spaces

from decimal import Decimal
a, b = map(Decimal, input().split())
print(int(a*b))
Buggy code:
A,B = input().split()
A = int(a)

B = int(b[0]+b[2:])
print(A*B//100)

Fixed code:

A,B = input().split()
A = int(A)
B = int(B[0]+B[2:])
print(A*B//100)
Buggy code:
a,b = map(float, input().split())
a = int(a)
b = round(b*100)
print(int(a*b)/100)

Fixed code:
a,b = map(float,input().split())

a = int(a)
b = int(round(float(b) * 100))

print(a*b//100)
Buggy code:
from math import floor
import decimal
a,b = map(Decimal,input().split())
r = floor(a * b)
print(r)


Fixed code:
import math
from decimal import *
a, b = map(Decimal, input().split())
print(math.floor(a*b))
Buggy code:

A,B = input.split()
A = int(A)
B = round(float(B)*100)

res = (A*B)//100
print(res)


Fixed code:
A,B = input().split()
A = int(A)
B = round(float(B)*100)

print(int(A*B//100))
Buggy code:
import math
A, B = input().split()
a = int(A)
b = int(B*1000)
print(a*b//1000)


Fixed code:
import math
A, B = input().split()
a = int(A)
b = int(float(B)*1000)
print(a*b//1000)
Buggy code:
import numpy as np
import scipy as sp
import math
 
x, y = input().split()
a = int(x)
b = float(y)
c = math.floor(b*100+0.00001)
d = c//100
print(a*d)

Fixed code:
import numpy as np
import scipy as sp
import math
 
x, y = input().split()
a = int(x)
b = float(y)
c = math.floor(b*100+0.0001)
print(math.floor(a*c//100))
Buggy code:
c=input("").split(" ")
a=int(c[0])

e=100*int(c[1][0])+10*int(c[1][2])+int(c[1][3])

d=int(a*e)
s=str(d)
f=s[:len(s)-1]

print(f)

Fixed code:
c=input("").split(" ")
a=int(c[0])

e=100*int(c[1][0])+10*int(c[1][2])+int(c[1][3])

d=int(a*e)
s=str(d)
if (len(s)<3):
    f="0"
else:
    f=s[:len(s)-2]

print(f)
Buggy code:
from math import floor
from decimal import Decimal
a, b = map(Decimal, input().split())
print(math.floor(a*b))

Fixed code:
from math import floor
from decimal import Decimal
a, b = map(Decimal, input().split())
print(floor(a*b))
Buggy code:
def solve() :
    a, b = input().split()

    a = int(a)
    b = b.replace('.', '')
    b100 = int(b[0])*100 + int(b[1])*10 + int(b[2])

    print(b100)
    print(a*b100//100)
    return


if __name__ == "__main__" :
    solve()

Fixed code:
def solve() :
    a, b = input().split()

    a = int(a)
    b = b.replace('.', '')
    b100 = int(b[0])*100 + int(b[1])*10 + int(b[2])

    print(a*b100//100)
    return


if __name__ == "__main__" :
    solve()
Buggy code:
import math
from decimal import Decimal
n=input().split()
a = int(n[0])
b=Decimal(n[1])
ans = a*b

print(ans)


Fixed code:
import math
from decimal import Decimal
n=input().split()
a = int(n[0])
b=Decimal(n[1])
ans = a*b

print(int(ans))
Buggy code:
import math
from decimal import Decimal

a, b = map(Decimal, input().split())
#print(a)
#print(b)
ans = int(a) * math.floor(b)
#print(ans)
print(int(ans))

Fixed code:
import math
from decimal import Decimal

a, b = map(Decimal, input().split())
#print(a)
#print(b)
ans = a * b
#print(ans)
print(math.floor(ans))
Buggy code:
A, B = input().split()
A = int(A)
B = int(float(B)*(10**3))
print(B)
print(A*B//(10**3))


Fixed code:
A, B = input().split()
A = int(A)
B = int(float(B)*(10**3))
print(A*B//(10**3))
Buggy code:
a,b = input().split()
print(a,b)
a = int(a)
b = b.replace('.','')
b = int(b)
print(a*b//100)

Fixed code:
a,b = input().split()
a = int(a)
b = b.replace('.','')
b = int(b)
print(a*b//100)
Buggy code:
a, b = input().split()
a = int(a)
b = float(b)
b  = round(b * 100)
print(a+b//100)

Fixed code:
a, b = input().split()
a = int(a)
b = float(b)
b = round(b * 100)
print(a*b//100)
Buggy code:
import math
from collections import defaultdict
ml=lambda:map(float,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())

"""========main code==============="""

a,b=ml()

b_=""
for i in str(b):
    if i!='.':
        b_+=i
b_=int(b_)
a*=b_

print(a//100)

Fixed code:
import math
from collections import defaultdict
ml=lambda:map(float,input().split())
ll=lambda:list(map(int,input().split()))
ii=lambda:int(input())
ip=lambda:list(input())

"""========main code==============="""

a,b=input().split()
a=int(a)
b_=""
for i in str(b):
    if i!='.':
        b_+=i
      
b_=int(b_)
a*=b_
print(int(a//100))
Buggy code:
from decimal import Decimal

def main():
    a, b = input().split()
    v = int((Decimal(a) * Decimal(b))
    print(v)

main()

Fixed code:
from decimal import Decimal

def main():
    a, b = input().split()
    v = int(Decimal(a) * Decimal(b))
    print(v)

main()
Buggy code:
import decimal
import math
a,b=map(str,input().split())
c=Decimal('a')
d=Decimal('b')
e=c*d
f=math.floor(e)
print(f)

Fixed code:
from decimal import *
import math
a,b=map(str,input().split())
c=Decimal(a)
d=Decimal(b)
e=Decimal(c*d)
f=math.floor(e)
print(f)
Buggy code:
A, B = [x for x in input().split()]

A = int(A)
B = int(round(float(B) * 100))

print(A*B // 100

Fixed code:
A, B = [x for x in input().split()]

A = int(A)
B = int(round(float(B) * 100))

print(A*B // 100)
Buggy code:
inp = input().split()

A = int(inp[0])
_B = float(inp[1])
B = int(_B * 100)

res = A*B

print(str(res))


Fixed code:
inp = input().split()

A = int(inp[0])
_B = float(inp[1])
B = round(_B * 100)

res = int(A*B // 100)

print(str(res))
Buggy code:
from decimal import Decimal
a, b = map(Decimal,input().split())
print(a * b)

Fixed code:
from decimal import Decimal
a, b = map(Decimal,input().split())
print(int(a * b))
Buggy code:
N = list(input().split())
A = int(N[0])
b1,b2 = N[1].split('.')
B = int(b1+b2)
prd = list(str(A*B))
ans = 0
if len(prd) < 3:
    ans = 0
else:
    prd.pop(-1,-2)
    ans = int(''.join(prd))
print(ans)


Fixed code:
N = list(input().split())
A = int(N[0])
b1,b2 = N[1].split('.')
B = int(b1+b2)
prd = list(str(A*B))
ans = 0
if len(prd) < 3:
    ans = 0
else:
    prd.pop()
    prd.pop()
    ans = int(''.join(prd))
print(ans)
Buggy code:
a,b = map(float,input().split())
import math
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
b = Decimal(str(b)).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP)
print(b)
a = Decimal(a)
ans = a*b
print(math.floor(ans))

Fixed code:
a,b = map(float,input().split())
import math
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
b = Decimal(str(b)).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP)
a = Decimal(a)
ans = a*b
print(math.floor(ans))
Buggy code:
a, b = input().split()
a = int(a)
b = float(b)
b *= 100
print(a*b // 100) 

Fixed code:
a, b = input().split()
a = int(a)
b = round(float(b) * 100)
print(a * b // 100)
Buggy code:
# coding: utf-8
# Your code here!
import math
import numpy as np

string = input().split()
A = int(string[0]) 
B = int(float(string[1]) * 100)
print(A)
print(B)

print(int(int( (A*B) )//int(100)))



Fixed code:
# coding: utf-8
# Your code here!
import math
import numpy as np


string = input().split()
A = int(string[0]) 
B = int (round(float(string[1]) * 100))

print(int(int( (A*B) )//int(100)))
Buggy code:
a, b = map(float, input().split())
a = int(a)
b = int(b * 100 + 0.5)
print(a, b)
print(a * b // 100)


Fixed code:
a, b = map(float, input().split())
a = int(a)
b = int(b * 100 + 0.5)
print(a * b // 100)
Buggy code:
def main():
    A,B = map(str,input().split())
    A = int(A)
    B.replace(',','')
    B = int(B)
    C = A*B
    print(C//100)
    
if __name__ == '__main__':
    main()

Fixed code:
def main():
    A,B = map(str,input().split())
    A = int(A)
    B = B.replace('.','')
    B = int(B)
    C = A*B
    print(C//100)
    
if __name__ == '__main__':
    main()
Buggy code:
a, b = input().split()

va = int(a)
rep = b.replace('.', '')
vb = int(rep) * 100

print(int(va * vb // 100))




Fixed code:
a, b = input().split()

va = int(a)
rep = b.replace('.', '')
vb2 = int(rep)
vb = float(b)

print(int((va * vb2) // 100))
Buggy code:
import math
import decimal
a,b=input().split()

a=int(a)
b=decimal.Decimal(b)

print(a*b)

print(math.floor(a*b))

Fixed code:
import math
import decimal
a,b=input().split()

a=int(a)
b=decimal.Decimal(b)

print(math.floor(a*b))
Buggy code:
import math

A,B=input().split()

A = int(A)
N,F = B.split('.')

print(N,F)
ans = (A * 100 * int(N) + A * int(F)) //100

print(ans)


Fixed code:
import math

A,B=input().split()

A = int(A)
N,F = B.split('.')
ans = (A * 100 * int(N) + A * int(F)) //100

print(ans)
Buggy code:
A,B = map(input().split())
A = int(A)
B = B.replace(".","")
B = int(B)
ans = int((A * B)//100)
print(str(ans))

Fixed code:
A,B = input().split()
A = int(A)
B = B.replace(".","")
B = int(B)
ans = int((A * B)//100)
print(str(ans))
Buggy code:
import io,sys
sys.setrecursionlimit(10**6)

def main():
    s = sys.stdin.readline().rstrip().split()
    a = int(s[0])

    b = int(float(s[1])*100+0.1)

    print(ans=a*b//100)
main()

Fixed code:
import io,sys
sys.setrecursionlimit(10**6)

def main():
    s = sys.stdin.readline().rstrip().split()
    a = int(s[0])

    b = int(float(s[1])*100+0.1)

    print(a*b//100)
main()
Buggy code:
import math
from decimal import *
getcontext().prec = 100
a,b=input().split()
a=int(a)
b=float(b)
A=round(Decimal(a)*Decimal(b))
print(math.floor(A))


Fixed code:
import math
from decimal import *
getcontext().prec = 100
a,b=input().split()
a=int(a)
A=Decimal(a)*Decimal(b)
print(math.floor(A))
Buggy code:
from decimal import Decimal
from decimal import getcontext
s = input();
a,b = s.split();
print(Decimal(a)*Decimal(b));

Fixed code:
from decimal import Decimal
from decimal import getcontext
s = input();
a,b = s.split();
print(int(Decimal(a)*Decimal(b)));
Buggy code:
import Decimal from decimal
a,b=map(Decimal,input().split())
print(int(a*b))

Fixed code:
from decimal import Decimal
a, b= list(map(Decimal, input().split()))
print(int(a*b))
Buggy code:
a,b=map(str,input().split())
a=int(a)
c,d=map(int,b.split("."))
print(a,b,c,d)
x=a*c+(a*d//100)
print(x)

Fixed code:
a,b=map(str,input().split())
a=int(a)
c,d=map(int,b.split("."))
#print(a,b,c,d)
x=a*c+(a*d//100)
print(x)
Buggy code:
a, b = input().split()
b.replace(".", "")
a = int(a)
b = int(b)
print(a*b//100)


Fixed code:
a, b = input().split()
b = int(b.replace(".", ""))
a = int(a)
print(a*b//100)
Buggy code:
a,b = input().split()
aa = int(a)
bb = b.replace(".","")
print(aa*bb//100)

Fixed code:
a,b = input().split()
aa = int(a)
bb = int(b.replace(".",""))
print(aa*bb//100)
Buggy code:
A, B = map(str, input().split())
A = int(A)

ans = 0
r = 4
for i in range(4):
    if i != 1:
        ans += A * int(B[i]) * (10 ** (r))
        r -= 1

ans = str(ans)[:3]
print(ans)

Fixed code:
A, B = map(str, input().split())
A = int(A)

ans = 0
r = 4
for i in range(4):
    if i != 1:
        ans += A * int(B[i]) * (10 ** (r))
        r -= 1

print(ans // 10000)
Buggy code:
a, b = input().strip().split()
b = float(b)
b = int(b * 1000)
a = int(a)
print((a * b) / 1000)


Fixed code:
a, b = input().strip().split()
b = float(b)
b = int(b * 1000)
a = int(a)
print((a * b) // 1000)
Buggy code:
AB = list(input().split())
 
A = int(AB[0])
B = float(AB[1])
 
B = round(B * 100)
 
ans = int(A * B / /100)
 
print(ans)

Fixed code:
AB = list(input().split())
 
A = int(AB[0])
B = float(AB[1])
 
B = round(B * 100)
 
ans = int(A * B // 100)
 
print(ans)