Problem:


Score : 300 points

Problem Statement

Compute A \times B, truncate its fractional part, and print the result as an integer.

Constraints

0 \leq A \leq 10^{15}

0 \leq B < 10

A is an integer.

B is a number with two digits after the decimal point.

Input

Input is given from Standard Input in the following format:

A B

Output

Print the answer as an integer.

Sample Input 1

198 1.10

Sample Output 1

217

We have 198 \times 1.10 = 217.8. After truncating the fractional part, we have the answer: 217.

Sample Input 2

1 0.01

Sample Output 2

0

Sample Input 3

1000000000000000 9.99

Sample Output 3

9990000000000000



Sample input:
198 1.10


Sample output:
217

Submission status: Accepted

Solution code:
def main():
    import sys
    import math
    import numpy as np

    a,b = map(str, input().split())
    a = [int(i) for i in a]
    a += [0]*2
    a = np.array(a)
    b = b.replace('.','')
    b = [int(i) for i in b]
    ans = a*b[0]
    ans[1:] += a[:-1]*b[1]
    ans[2:] += a[:-2]*b[2]
    from functools import reduce
    l = reduce(lambda a,b:10*a+b, ans)
    print(l//100)
    

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
import numpy as np
a,b=map(np.longdouble,input().split())
c=int(a)*b
print(int(c))

Submission status: Accepted

Solution code:
a,b=map(str,input().split(" "))
b,c=map(str,b.split("."))
a=int(a)
b=int(b)
c=int(c)
print(a*b+a*c//100)

Submission status: Accepted

Solution code:
from sys import stdin
from decimal import *


def floor(a,b):
    return a//b


def main():
    _in = [_.rstrip() for _ in stdin.readlines()]
    A, B = _in[0].split(' ')  # type:list(str)
    # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
    A = Decimal(A)
    B = Decimal(B)
    cnt = A * B
    cnt = int(floor(cnt, 1))
    # ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    print(cnt)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import decimal

A,B = input().split()
a = int(A)
b = decimal.Decimal(B)
c = a*b
print(int(c))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
 
a, b=map(float, input().split())
a=str(a)
b=str(b)

a=Decimal(a)
b=Decimal(b)

print(math.floor(a*b))

Submission status: Accepted

Solution code:
from decimal import Decimal

a,b = map(Decimal,input().split())

ans = a*b

print(int(ans))

Submission status: Accepted

Solution code:
import math

A, B = input().split()
A = int(A)
sei = int(B[0])
syou = int(B[2]+B[3])
#print(sei,syou)
B = sei*100 + syou
###print(B)
#print(A*B)
ans = (A*B) // 100 




print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/python3

from decimal import *

#標準出力からの読み込み
input_1 = input()
a = Decimal(input_1.split(" ")[0])
b = Decimal(input_1.split(" ")[1])

if (a == 0) or (b == 0):
    output = 0
else:
    s = str(a*b)
    try:
        output = s[:s.index('.')]
    except:
        output = s

print(output)

Submission status: Accepted

Solution code:
import math
import decimal
A, B = input().split()
A = int(A)
B = decimal.Decimal(B)
B = B * 100
ans = math.floor(A * B / 100)
print(ans)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

x = input().split()
a_ = x[0]
b = Decimal(x[1])

if len(a_)<=8:
    a = Decimal(a_)
    print(int(math.floor(a*b)))
else:
    a_div = (Decimal(a_)/(10**9))
    b_mul = b*100
    print(int(math.floor(a_div*b_mul*10**7)))

Submission status: Accepted

Solution code:
from math import ceil, floor, modf

A, B = input().split()
A = int(A)

B1 = int(B[:-3])
B2 = int(str(B)[-2:])

ans1 = A * B1
ans2 = A * B2 // 100

ans = ans1 + ans2
print(floor(ans))

Submission status: Accepted

Solution code:
#import math
#=input()
#=int(input())
a,b=map(str,input().split())
#=list(map(int,input().split()))
#=[list(map(int,input().split())) for _ in range()]
a = int(a)
b = int(b[:1]+b[2:])
ans = (a * b) // 100
print(ans)

Submission status: Accepted

Solution code:
import math
import decimal
l = input().split(" ")
a = int(l[0])
b = decimal.Decimal(l[1])
print(math.floor(a*b))

Submission status: Accepted

Solution code:
a, b = map(float, input().split())
a = int(a)
b = str(b)
s = int(b[0])*100
s += int(b[2])*10
try:
    s += int(b[3])*1
except:
    pass

ans = a*s
ans = str(ans)
check = len(ans)

if check < 3:
    print(0)
else:
    print(ans[0:-2])

Submission status: Accepted

Solution code:
a,b=map(str,input().split())
a=int(a)
b = b[0]+b[2:]
b = int(b)
ans = a*b
ans = str(ans)
if len(ans)>=3:
    ans = ans[:-2]
    ans = int(ans)
else:
    ans = 0
print(ans)

Submission status: Accepted

Solution code:
a,b=input().split()
#a=10
#b=9.99
from decimal import*
A=Decimal(str(a))
AA=A.quantize(Decimal('0'),rounding=ROUND_FLOOR)
B=Decimal(str(b))
BB=B.quantize(Decimal('0.01'),rounding=ROUND_FLOOR)
#print(AA)
#print(BB)
K=AA*BB
KK=K.quantize(Decimal('0'),rounding=ROUND_FLOOR)
print(KK)

#a='10'
#b='9.99'
#aa=int(a)
#bb=float(b)
#print(int(aa*bb))

Submission status: Accepted

Solution code:
import math
a, b = map(str,input().split())
b = b.replace('.','')
#print(b)
A = int(a)*100
ans = int(b)*A
#math.floor(b)

ans = ans//10000
print(ans)

Submission status: Accepted

Solution code:
def main():
    N = [str(_) for _ in input().split()]
    A = int(N[0])
    B = N[1]

    BB = B.split('.')
    result = A * int(BB[0])
    s = (A * int(BB[1][0]) * 10) + (A * int(BB[1][1]))
    
    result = result * 100 + s
    r = str(result)
    if len(r) <= 2:
        print(0)
    else:
        print(r[0:len(r)-2])

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import decimal
import math

a, b = map(str, input().split())

a = decimal.Decimal(a)
b = decimal.Decimal(b)
ans = math.floor(a * b)
print(ans)

Submission status: Accepted

Solution code:
import math
import decimal

a,b=input().split()
a=int(a)
b=decimal.Decimal(b)

c=a*b
c=math.floor(c)
c=int(c)

print(c)

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
A, B = map(str,input().split())

A = Decimal(A)
# A = Decimal(A)
# B = float(B)
B = Decimal(B)

print(int(A * B))

Submission status: Accepted

Solution code:
from sys import stdin

[a, b] = stdin.readline().split()
b = round(float(b) * 100)
print(int(a) * b // 100)

Submission status: Accepted

Solution code:
import math
from decimal import *
s = input().split()
A = Decimal(s[0])
B = Decimal(s[1])
c = math.floor(A * B)
print(c)

Submission status: Accepted

Solution code:
import sys
import numpy as np
import math
from collections import deque 
from functools import reduce
from decimal import Decimal

# input = sys.stdin.readline
a, b = input().split()

a_d = Decimal(a)
b_d = Decimal(b)
print(int(a_d*b_d))

Submission status: Accepted

Solution code:
A, B = input().split()
A = int(A)
B = int(B[:1] + B[2:])
print(A*B//100)

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b = map(str, input().split())
a, b = int(a), Decimal(b)
ans = a*b
print(int(ans))

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b = input().split()
a = int(a)
b = Decimal(b)

print(int(a * b))

Submission status: Accepted

Solution code:
import math
import decimal

A,B=map(str,input().split())

a=decimal.Decimal(A)
b=decimal.Decimal(B)

print(int(a*b))

Submission status: Accepted

Solution code:
import sys
import itertools
sys.setrecursionlimit(1000000000)
from heapq import heapify,heappop,heappush,heappushpop
import math
import collections
import copy
import decimal

if __name__ == "__main__":
    a,b = input().split()
    a = decimal.Decimal(a)
    b = decimal.Decimal(b)
    print(int(a*b))

Submission status: Accepted

Solution code:
import decimal

a, b = [ v for v in input().split() ]
c = decimal.Decimal(a)
d = decimal.Decimal(b)
ans = c * d
ans = ans.quantize(decimal.Decimal("0"), rounding = decimal.ROUND_DOWN)
print(ans)

Submission status: Accepted

Solution code:
import math
import decimal

a,b = input().split()
a = int(a)
b = decimal.Decimal(b)
print(math.floor(a*b))

Submission status: Accepted

Solution code:
from decimal import Decimal
l = input().split()
a = int(l[0])
b = Decimal(l[1])
##print(a,b)
##print(a*b)
print(int(a*b))

Submission status: Accepted

Solution code:
from decimal import *
getcontext().prec = 32
a,b = map(str,input().split())
b = int(Decimal(b)*100)
a = int(a)
print((a*b)//100)

Submission status: Accepted

Solution code:
import decimal

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



if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import sys


def _sa(): return sys.stdin.readline().strip().split()


def main():
    a, b = _sa()
    a = int(a)
    b = round(100*float(b))
    return (a * b) // 100


if __name__ == "__main__":
    print(main())

Submission status: Accepted

Solution code:
import decimal
import sys
sys.setrecursionlimit(10**9)

def main():
    A,B=input().split()
    ab = decimal.Decimal(A)*decimal.Decimal(B)
    print(ab.quantize(decimal.Decimal('0'), rounding=decimal.ROUND_FLOOR))




if __name__ == "__main__":
  main()

Submission status: Accepted

Solution code:
from decimal import *
l=input().split()
a=Decimal(l[0])
b=Decimal(l[1])*100

print(a*b//100)

Submission status: Accepted

Solution code:
import os
import sys
from io import BytesIO, IOBase


def main():
    a,b = input().rstrip().split()
    b = int(b[:-3]+b[-2:])
    a = int(a)
    res = str(a* b)
    if len(res) <= 2:
        print(0)
        return
    res = int(res[:-2])
    print(res)





#.........................................FAST INPUT OUTPUT.......................................
BUFSIZE = 8192


class FastIO(IOBase):
    newlines = 0

    def __init__(self, file):
        self._fd = file.fileno()
        self.buffer = BytesIO()
        self.writable = "x" in file.mode or "r" not in file.mode
        self.write = self.buffer.write if self.writable else None

    def read(self):
        while True:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            if not b:
                break
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines = 0
        return self.buffer.read()

    def readline(self):
        while self.newlines == 0:
            b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
            self.newlines = b.count(b"\n") + (not b)
            ptr = self.buffer.tell()
            self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr)
        self.newlines -= 1
        return self.buffer.readline()

    def flush(self):
        if self.writable:
            os.write(self._fd, self.buffer.getvalue())
            self.buffer.truncate(0), self.buffer.seek(0)


class IOWrapper(IOBase):
    def __init__(self, file):
        self.buffer = FastIO(file)
        self.flush = self.buffer.flush
        self.writable = self.buffer.writable
        self.write = lambda s: self.buffer.write(s.encode("ascii"))
        self.read = lambda: self.buffer.read().decode("ascii")
        self.readline = lambda: self.buffer.readline().decode("ascii")


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")

#....................................END OF FAST I/O............................................

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math
a,b = map(str,input().split())
a = int(a)
new_b = ""
for i in b:
    if "." != i:
        new_b += i
ans = a*int(new_b)
s = str(ans)
s_len = len(s)
if s_len >= 3:
    print(s[0:s_len - 2])
else:
    print(0)

Submission status: Accepted

Solution code:
from math import floor, ceil
import decimal


def main():

    A, B = map(float, input().split())
    B = round(B, 2)
    A = int(A)
    A = decimal.Decimal(str(A))
    B = decimal.Decimal(str(B))
    AB = A*B
    AB = floor(AB)
    print(AB)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math

b=input().split()
b1=int(b[0])

a=b1*(int(b[1][0])*100+int(b[1][2])*10+int(b[1][3]))

if len(str(a))<3:
  print(0)
else:
  print(str(a)[:-2])

Submission status: Accepted

Solution code:
a,b=input().split()
from decimal import Decimal
ans=Decimal(a)*Decimal(b)
print(int(ans))

Submission status: Accepted

Solution code:
import math
import decimal

        
A, B = input().split()
A = int(A)
B = decimal.Decimal(B)
#print(B)


#print()
B *= 100
#print(B)
B = int(B)

#print(B)
#print(int(A))

print(math.floor(A*B) // 100)

Submission status: Accepted

Solution code:
import math
a, b = map(str, input().split())
if(b[0] == "0"):
  if b[2] == "0":
    b_m = b[3]
  else:
    b_m = b[2:]
else:
  b_m = b.replace('.', '')

res = int(a) * int(b_m)

if res >= 100:
  res_int = int(str(res)[:-2])
else:
  res_int = 0
print(res_int)

Submission status: Accepted

Solution code:
from decimal import *
def main():
    A,B = input().split()
    #A = int(A)
    #B = int(B[0])+int(B[2:4])/100
    A = Decimal(A)
    B = Decimal(B)
    print(int(A*B))

main()

Submission status: Accepted

Solution code:
a,b = map(str,input().split())
c,d = map(str,b.split('.'))
ans = int(a) * int(c)
tmp = str(int(a) * int(d))
ans2 = tmp[:len(tmp)-len(d)]
print(ans if ans2 == '' else ans+int(ans2))

Submission status: Accepted

Solution code:
from decimal import Decimal
A,B = list(map(float, input().split()))
a = Decimal(str(A))
b = Decimal(str(B))
n = a*b
print(int(n))

Submission status: Accepted

Solution code:
from decimal import *

a, b = input().split()

ab = Decimal(a) * Decimal(b)
result = Decimal(str(ab)).quantize(Decimal(str(1)), rounding=ROUND_DOWN)

print(int(result))

Submission status: Accepted

Solution code:
from decimal import Decimal
A, B = map(Decimal, input().split())
print(int(A*B//1))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal, getcontext

input_list = input().split()
A = int(input_list[0])
B = input_list[1]
final_B = Decimal(B)
print(math.floor(final_B * A))

Submission status: Accepted

Solution code:
import decimal

A = input().split()
a = decimal.Decimal(A[0])
b = decimal.Decimal(A[1])
print(int(a*b))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

def abc169_c():
    sin = input().split()
    A = int(sin[0])
    B = math.floor(Decimal(sin[1]) * 100)
    ans = A * B // 100
    print(ans)

abc169_c()

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_DOWN, getcontext
a, b = map(str, input().split())
getcontext().prec = 19
getcontext().rounding = ROUND_DOWN
x = Decimal(a)
y = Decimal(b)
print("{:}".format(Decimal(int(x * y)), rounding=ROUND_DOWN))

Submission status: Accepted

Solution code:
from sys import stdin
import math
from decimal import *

a,b = stdin.readline().rstrip().split()
a = Decimal(a)
b = Decimal(b)

print(math.floor(a*b))

Submission status: Accepted

Solution code:
a,b = map(float,input().split())
aa = int(a) % 10000000
a = int(a) // 10000000
c = round(b*int(a)*100)
cc = round(b*int(aa)*100)
cc /= 100
cc = int(cc)
print(c*100000 + cc)

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b = input().split()
a = int(a)
b = Decimal(b)
ans = (Decimal(a) * Decimal(b)) // 1
print(ans)

Submission status: Accepted

Solution code:
from decimal import *

A,B= list(input().split())
B = Decimal(B)
A = int(A)
ans = A*B

print(int(ans))

Submission status: Accepted

Solution code:
from decimal import *
A,B = [Decimal(i) for i in input().split()]
print(A*B//1)

Submission status: Accepted

Solution code:
from decimal import *
a,b=input().split()
print((Decimal(a)*Decimal(b)//1))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input().split()

A = int(s[0])
B = int(s[1].replace(".", ""))
m = A*B

if m>=100:
  result = int(str(m)[:-2])
else:
  result = 0
  
print(result)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
A, B = input().rstrip().rsplit()
A = Decimal(A)
B = Decimal(B)

ans = A*B

print(math.floor(ans))

Submission status: Accepted

Solution code:
import decimal

from math import floor

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

Submission status: Accepted

Solution code:
from decimal import *
a, b = list(map(str, input().split()))
da = Decimal(a)
db = Decimal(b)
print(str(int(da*db)))

Submission status: Accepted

Solution code:
import math
a, b = input().split()
a1 = int(a)
b1 = int(b[0])
b2 = int(b[2])*10 + int(b[3])
if a1*b2 > 100:
    p = a1*b2//100
    print(a1*b1+p)
else:
    print(a1*b1)

Submission status: Accepted

Solution code:
a,b=input().split()
from decimal import Decimal
ans=Decimal(a)*Decimal(b)
print(int(ans))

Submission status: Accepted

Solution code:
import math
 
a_0, b_0 = input().split()
a = int(a_0)

small = str(a*int(b_0[-2:]))


if len(small) >= 3:
  ans = a*int(b_0[0:-3]) +int(small[:-2])
else:
  ans = a*int(b_0[0:-3])
print(ans)

Submission status: Accepted

Solution code:
import sys
import decimal
from decimal import Decimal, ROUND_DOWN

input = lambda: sys.stdin.readline().rstrip()


def solve():
    A, B = input().split()
    A = decimal.Decimal(A)
    B = decimal.Decimal(B)
    ans = A * B
    print(ans.quantize(Decimal('0'), rounding=ROUND_DOWN))


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
from decimal import Decimal
a, b = input().split()
a = Decimal(a)
b = Decimal(b)

print(int(a*b))

Submission status: Accepted

Solution code:
from decimal import Decimal
import math

line = input().split()
a = Decimal(line[0])
b = Decimal(line[1])
c = a * b

print(math.floor(c))

Submission status: Accepted

Solution code:
# 2106~
# 10^2 より大きい部分と，10^2より小さい部分に分ける
A,B=input().split()
A = int(A)
B = float(B)
if A < 10**2:
    print(int(A*B))
    exit()
Ag = int(A/(10**2))
Bg = round(B*(10**2))
ABg = Ag*Bg
Al = A - Ag*(10**2)
Abl = int(Al*B)
print(ABg+Abl)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
A, B = map(Decimal,input().split())
print(math.floor(A*B))

Submission status: Accepted

Solution code:
from decimal import *
getcontext().prec = 28
a, b = input().split()
ans = Decimal(a) * Decimal(b)
print (int(ans))

Submission status: Accepted

Solution code:
Na, Nb = input().split()
Mb = Nb[:-3] + Nb[-2:]
a = int(Na)
b = int(Mb)
ans = str(a*b)
if len(ans) >= 3:
  print(ans[:-2])
else:
  print(0)

Submission status: Accepted

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

a = int(a)



b = int(b.replace('.',''))

answer = a*b

answer = str(answer)

if len(answer) < 3 :
    print('0')
    quit()



print(answer[0:-2])

Submission status: Accepted

Solution code:
S = input().strip().split()
A = int(S[0])
B = int(S[1].replace(".", ""))
print(B * A // 100)

Submission status: Accepted

Solution code:
nums = input().split()
a = int(nums[0])
b = nums[1]

res = ""
for ch in range(len(b)):
	if b[ch] != '.':
		res += b[ch]
		
b = int(res)

prod = (a * b) // 100

print(prod)

Submission status: Accepted

Solution code:
from decimal import *
a, b = input().split()

a = Decimal(a)
b = Decimal(b)
result = (a*b).quantize(Decimal('1'), rounding=ROUND_DOWN)
print(result)

Submission status: Accepted

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

b *= 1000

a, b = int(a), int(b);

print(a * b // 1000)

Submission status: Accepted

Solution code:
import sys
import math
from decimal import *
A,B=map(Decimal, sys.stdin.readline().split())
print ((A*B).quantize(Decimal('0'), rounding=ROUND_FLOOR))

Submission status: Accepted

Solution code:
a, b = input().split()
A = int(a)
B = int(float(b)*1000)
ans = A*B//1000
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal
ab = input().split()
a = Decimal(ab[0])
b = Decimal(ab[1])
 
ans = int(a*b)
 
print(ans)

Submission status: Accepted

Solution code:
# coding: utf-8
from decimal import Decimal
import math

a = input().split()
print(math.floor(int(a[0]) * Decimal(a[1])))

Submission status: Accepted

Solution code:
a,b=input().split()
b1=int(b[0])*100
b2=int(b[2])*10
b3=int(b[3])
a=int(a)
ans=a*b1
ans+=a*b2
ans+=a*b3
ans//=100
print(ans)

Submission status: Accepted

Solution code:
a,b = map(str,input().split())
a = int(a)
if len(b) == 4:
    b = int(b[0] + b[2:])
    
else:
    b = int(b[0] + b[2] +'0')
tmp = str(a*b)
if len(tmp) <=2:
    print(0)
else:
    tmp = str(a*b)[:-2]
    print(int(tmp))

Submission status: Accepted

Solution code:

import math
from decimal import Decimal
a,b = input().split()
a = Decimal(a)
b = Decimal(b)
if a==0 or b==0:
    print(0)
else:
    print(int(math.floor(a*b)))

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a)
s = a*int(b[0])
g = a*int(b[2])
d = a*int(b[3])
s = str(s)+'00'
g = str(g)+'0'
d = str(d)
#print(s,g,d)
ans = int(s)+int(g)+int(d)
print(ans // 100)

Submission status: Accepted

Solution code:
from decimal import  Decimal

N=list(input().split())

A=Decimal(N[0])
B=Decimal(N[1])

print(int(A*B))

Submission status: Accepted

Solution code:
A,B=map(float,input().split())
import math
from decimal import *
b=str(B)
#print(b)
b0=int(b[0])
b2=int(b[2])
if len(b)==4:
    b3=int(b[3])
else:
    b3=0
#print(b0,b2,b3)
ans=Decimal(A)*b0+Decimal(A)*b2/10+Decimal(A)*b3/100
print(math.floor(ans))

Submission status: Accepted

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

flag = 'b'
b_num = 0

for i in range(len(b)):
    if b[i] == '.':
        continue
    else:
        b_num = b_num*10+int(b[i])

#print(b_num)
#exit()

print(int(a)*b_num//100)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
import numpy as np


def solve(A: int, B: float):
    B100 = int(B*1000)
    ans = (A*B100)-((A*B100) % 1000)
    print(ans//1000)
    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()

Submission status: Accepted

Solution code:
import decimal
A,B=map(str,input().split())
A=int(A)
B=decimal.Decimal(B)
print(int(A*B))

Submission status: Accepted

Solution code:
import math
a,b=input().split()
b=b[0]+b[2:]
print(int(a)*int(b)//100)

Submission status: Accepted

Solution code:
import decimal
a, b = (decimal.Decimal(x) for x in input().split())
print(int(a*b))

Submission status: Accepted

Solution code:
s=input()
a,b=s.split(' ')
a=int(a)
b=100*int(b[0])+int(b[2:])
s=a*b
print(int(s//100))

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
A,B=list(map(float,input().split()))
A=int(A)
Bfloat, Bint = math.modf(B)
#print(Bfloat)
Bfloat=int(round(Bfloat*100,2))


ABfloat=int(A*Bfloat)
strABfloat=str(ABfloat)
lenABfloat=len(strABfloat)
#print(strABfloat)
temp=0
if lenABfloat>=3:
  for i in range(lenABfloat-2):
    temp+=int(strABfloat[i])*10**(lenABfloat-i-3)  
    #print(temp)
print(int(A*Bint)+temp)

Submission status: Accepted

Solution code:
def main():
    a, b = input().split(' ')
    a = int(a)

    b = b.replace('.', '')
    ans = int(0)
    div = int(1)
    syosu = 0.
    for c in b:
        tmp = int(a) * int(c)
        ans += tmp // int(div)
        syosu += float(tmp % div) / float(div)
        div = int(div * int(10))
    ans += int(syosu // 1)

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_HALF_UP
import math

line= input().split()
a = int(line[0])
b = Decimal(line[1]).quantize(Decimal('0.01'), rounding=ROUND_HALF_UP)

print(math.floor(a * b))

Submission status: Accepted

Solution code:
a,b=map(str,input().split())

#a=int(a)
#b=float(b)

from decimal import *

a=Decimal(a)
b=Decimal(b)

print(int(a*b))

Submission status: Accepted

Solution code:
M,N = input().rstrip().split(" ")
N2 = 0
N2 += int(N[0]) * 100
N2 += int(N[2]) * 10
N2 += int(N[3])

M = int(M) * 100

print((N2 * M) // 10000)

Submission status: Accepted

Solution code:
import math
A_in, B_in = map(str, input().split())
A = int(A_in)
ans = ( A*int(B_in[0])*100 + A*int(B_in[2])*10 + A*int(B_in[3]) )//100


print(ans)

Submission status: Accepted

Solution code:
import math
a,b = input().split()
a = int(a)
b = str(b)

c = a*int(b[0])
d = a*int(b[2])
e = a*int(b[3])

d = str(d)
e = str(e)

if d != '0' and e != '0':
    f = d[0:-1]
    if len(e) >= 2:
        g = e[0:-2]
    else:
        g = 0
    if len(e) >= 2:
        h = 10*int(d[-1]) + int(e[-1]) + 10*int(e[-2]) 
    else:
        h = 10*int(d[-1]) + int(e[-1])
    if h >= 100:
        h = h//100
    else:
        h = 0
elif d == '0':
    f = 0
    if len(e) >= 2:
        g = e[0:-2]
    else:
        g = 0
    if len(e) >= 2:
        h = int(e[-1]) + 10*int(e[-2])
    else:
        h = int(e[-1])
    if h >= 100:
        h = h//100
    else:
        h = 0
else:
    f = d[0:-1]
    g = 0
    h = 10*int(d[-1])
    if h >= 100:
        h = h//100
    else:
        h = 0

ans = c + int(f) + int(g) + h

print(ans)

Submission status: Accepted

Solution code:
A,B = map(float,input().split())
A = int(A)
buf = 0
bbuf = B - int(B)
for i in range(int(B)) :
    buf += A
bbuf = round(bbuf,4)
cbuf = 0
for i in range(int(bbuf * 100)) :
    cbuf += A
cbuf = cbuf // 100
print(buf + cbuf)

Submission status: Accepted

Solution code:
import math
from decimal import *
a,b=(input().split())
a=float(a)
b=float(b)
a=str(a)
b=str(b)
c=Decimal(a)*Decimal(b)
c=int(c)
print(c)

Submission status: Accepted

Solution code:
from decimal import Decimal
import math

a, b = input().split(" ")
print(int(math.floor(Decimal(a)*Decimal(b))))

Submission status: Accepted

Solution code:
from decimal import *

A,B=map(Decimal,input().split())

print(Decimal(str(A*B)).quantize(Decimal('1'), rounding=ROUND_DOWN))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

li = input().split()
a = Decimal(li[0])
b = Decimal(li[1])

print(math.floor(a*b))

Submission status: Accepted

Solution code:
A, B = map(str, input().split())
A = int(A)
b = ''
for i in range(len(B)):
    if i != len(B) - 3:
        b += B[i]
b = int(b)
ret = A * b
ret //= 100
print(ret)

Submission status: Accepted

Solution code:
a,b=input().split()
A=int(a)
B=float(b)
c=round(100*B)%100
d=int(B)
e=A*c//100

print(int(A*d+e))

Submission status: Accepted

Solution code:

import numpy as np
from functools import *
from decimal import Decimal
import sys
sys.setrecursionlimit(100000)



def gcd(a, b):
	while b:
		a, b = b, a % b
	return a


def acinput():
    return list(map(Decimal, input().split(" ")))


a,b=acinput()

print(int(a*b))

Submission status: Accepted

Solution code:
def C():
    a, b = input().split()
    a = int(a)
    b = int(float(b)*1000)
    print(a*b//1000)
C()

Submission status: Accepted

Solution code:
from decimal import Decimal
a,b = input().split()
a = int(a)
b = Decimal(b)
result = a*b
#print("a:{}, b:{}".format(a,b))
print(int(result))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
from decimal import *

l = list(map(lambda x: Decimal(x), str(input()).split(" ")))
print(int(l[0] * l[1]))

Submission status: Accepted

Solution code:
from decimal import *

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

a, b = map(str, input().split())
print(Decimal(a) * Decimal(b) // 1)