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:
from decimal import Decimal

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

A = Decimal(str(A))
B = Decimal(str(B))

print(int(A*B))

Submission status: Accepted

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

Submission status: Accepted

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

print(a*b//100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import decimal
A,B= list(input().split())
a = decimal.Decimal(A)
b = decimal.Decimal(B)
ans =decimal.Decimal(a*b).quantize(decimal.Decimal("0"), rounding=decimal.ROUND_FLOOR)
print(ans)

Submission status: Accepted

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

A = int(A)
B = B.replace('.', '')
B = int(B)

C = str(A * B)
if len(C) <= 2:
    print(0)
else:
    print(C[:-2])

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

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

ans = math.floor(Decimal(A) * Decimal(B))

print(ans)

Submission status: Accepted

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

    a = int(a)
    b1, b2 = b.split('.')
    b1 = int(b1)
    b2 = int(b2)

    zajedno = a*b1 + (b2*a)//100
    print(int(zajedno))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import decimal

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = input().split()
a, b = int(a), int(b.replace('.', ''))
ans = (a * b) // 100
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from decimal import Decimal
a, b = map(str, input().split())
print(int(Decimal(a)*Decimal(b)))

Submission status: Accepted

Solution code:
import decimal

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

print(int(a*b))

Submission status: Accepted

Solution code:
A, B = input().split()
a = int(A)
C = []
for c in B:
    C.append(c)
del C[1]
b = 0
b += int(C[0]) * 100
b += int(C[1]) * 10
b += int(C[2])

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

Submission status: Accepted

Solution code:
import sys

input_methods=['clipboard','file','key']
using_method=0
input_method=input_methods[using_method]

tin=lambda : map(int, input().split())
lin=lambda : list(tin())
mod=1000000007

#+++++

def main():
	#a = int(input())
	#b , c = tin()
	a, b = input().split()
	a = int(a)
	b = int('1'+b[0]+b[2]+b[3])
	r = a*b-a*1000
	if r <=99:
		return 0
	return int(str(r)[:-2])
	
	
	
	
#+++++
isTest=False

def pa(v):
	if isTest:
		print(v)
		
def input_clipboard():
	import clipboard
	input_text=clipboard.get()
	input_l=input_text.splitlines()
	for l in input_l:
		yield l

if __name__ == "__main__":
	if sys.platform =='ios':
		if input_method==input_methods[0]:
			ic=input_clipboard()
			input = lambda : ic.__next__()
		elif input_method==input_methods[1]:
			sys.stdin=open('inputFile.txt')
		else:
			pass
		isTest=True
	else:
		pass
		#input = sys.stdin.readline
			
	ret = main()
	if ret is not None:
		print(ret)

Submission status: Accepted

Solution code:
[a, b] = list(input().split())
a = int(a)
newb = ''
for i in b:
    if i == '.':
        continue
    newb += i
newb = int(newb)
print((a*newb)//100)

Submission status: Accepted

Solution code:
from decimal import *

A, B = input().split()
a = Decimal(A)
b = Decimal(B)

output = Decimal(a*b).quantize(Decimal('0'), rounding=ROUND_FLOOR)
print(output)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=input().split()
r=''
x=0
for i in b:
  if i=='.':
    r=r
  elif i!='0':
    x=1
    r=r+i
  elif x==1 and i=='0':
    r=r+i
if len(r)==0:
  r='0'
A=int(a)
B=int(r)
print(A*B//100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

a,b = map(str,input().split())
a = int(a)
b = list(b)
ans1 = int(a) * int(b[0])
ans2 = str(((int(b[2]) * 10) + (int(b[3]) * 1))*a)
ans2 = list(ans2)
ans = ''

if len(ans2) >= 3:
  ans2.pop()
  ans2.pop()
  for i in ans2:
    ans += i
else:
  ans = 0
  
  
print(ans1 + int(ans))

Submission status: Accepted

Solution code:
A, B = input().split()
A = int(A)
Bi, Bf = B.split(".")
Bi = int(Bi)
Bf = int(Bf)
ans = A * Bi + (A * Bf // 100)
print(ans)

Submission status: Accepted

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

B = list(B)
B.remove(".")

A = int(A)
B = int(B[0]) * 100 + int(B[1]) * 10 + int(B[2])

print(A * B // 100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal

S = input().split()

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

ans = A*B

print(int(ans))

Submission status: Accepted

Solution code:
import decimal
A,B = map(decimal.Decimal,input().split())
c = decimal.Decimal(A * B)
d = c.quantize(decimal.Decimal('0'), rounding=decimal.ROUND_FLOOR)
print(d)

Submission status: Accepted

Solution code:
import math
l=input().split()
a,b=int(l[0]),round(float(l[1])*100)
ans = str(a*b)
if len(ans)<=2:
  print(0)
  exit()
print(ans[:-2])

Submission status: Accepted

Solution code:
input_ = input().split()
a = int(input_[0])
b = input_[1].split('.')
b = b[0] + b[1][:2]

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b = map(float,input().split())
a = int(a)
b *= 100.0 + 0.0001
b = int(b)
print(a*b//100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ab = input().split()
a = int(ab[0])
b = ab[1]
import math
s = a*int(b[0])
ad = None
if len(b) > 2:
  tmp = str(a*int(b[2]))
  if len(str(tmp)) > 1:
    s+=int(str(a*int(b[2]))[:-1])
  ad = int(str(a*int(b[2]))[-1])
if len(b) > 3:
  tmp = str(a*int(b[3]))
  if len(str(tmp)) > 2:
    s+=int(str(a*int(b[3]))[:-2])
  if len(str(a*int(b[3]))) > 1 and ad:
    ad += int(str(a*int(b[3]))[-2])
    if ad > 9:
      s += int(str(ad)[:-1])
  

print(s)

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b = map(str, input().split())
ans_i = int(a) * int(float(b))
ans_f = int(Decimal(a) * (Decimal(b) - int(float(b))))
print(ans_i + ans_f)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

A = input().split()
answer = Decimal(A[0]) * Decimal(A[1])

print(math.floor(answer))

Submission status: Accepted

Solution code:
import numpy as np
import math
from decimal import Decimal

A,B = (x for x in input().split())

A = Decimal(str(A))

B = Decimal(str(B))

ans = A*B
ans=int(math.floor(ans))

print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal

A, B = [Decimal(_) for _ in input().split()]

print(int(A * B))

Submission status: Accepted

Solution code:
# input()
# int(input())
# map(int, input().split())
# list(map(int, input().split()))
import math
import sys
import bisect
import heapq  # 優先度付きキュー(最小値取り出し)
from collections import deque
inf = 10 ** 18
mod = 10 ** 9 + 7
a,b = input().split()
bpre = []
for c in b:
    if c != '.':
        bpre.append(c)
a100 = int(a)
b100 = int(''.join(bpre))
ans = str(a100*b100)
if len(ans) > 2:
    print(ans[:-2])
else:
    print(0)

Submission status: Accepted

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

#a = 10**15 #test
#ans = a * b
#getcontext().prec = 10**16
#b = b * 100
#ans = a *b
#ans = ans /100

a = str(a)
b = str(b)
ans = Decimal(a) * Decimal(b)

ans = math.floor(ans)

print(ans)

Submission status: Accepted

Solution code:
t = input().split()
a = int(t[0])
b100 = int(t[1].replace('.', ''))
ans = str(a*b100)
if len(ans) <= 2:
    print(0)
else:
    print(ans[:-2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
from decimal import Decimal

num_list = input().split()
ans = Decimal(num_list[0]) * Decimal(num_list[1])
print(int(ans))

Submission status: Accepted

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

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:
# python 3.8.2用
import math
import fractions
import bisect
import collections
import itertools
import heapq
import string
import sys
import copy
import numpy as np
from decimal import *
from collections import deque
from math import gcd
sys.setrecursionlimit(10**7)
MOD = 10**9+7
INF = float('inf') #無限大
def lcm(a,b):return (a*b) // gcd(a,b) #最小公倍数
def iin(): return int(sys.stdin.readline()) #整数読み込み
def ifn(): return float(sys.stdin.readline()) #浮動小数点読み込み
def isn(): return sys.stdin.readline().split() #文字列読み込み
def imn(): return map(int, sys.stdin.readline().split()) #整数map取得
def imnn(): return map(lambda x:int(x)-1, sys.stdin.readline().split()) #整数-1map取得
def fmn(): return map(float, sys.stdin.readline().split()) #浮動小数点map取得
def iln(): return list(map(int, sys.stdin.readline().split())) #整数リスト取得
def iln_s(): return sorted(iln()) # 昇順の整数リスト取得
def iln_r(): return sorted(iln(), reverse=True) # 降順の整数リスト取得
def fln(): return list(map(float, sys.stdin.readline().split())) # 浮動小数点リスト取得
def join(l, s=''): return s.join(l) #リストを文字列に変換
def perm(l, n): return itertools.permutations(l, n) # 順列取得
def perm_count(n, r): return math.factorial(n) // math.factorial(n-r) # 順列の総数
def comb(l, n): return itertools.combinations(l, n) # 組み合わせ取得
def two_distance(a, b, c, d): return ((c-a)**2 + (d-b)**2)**.5 # 2点間の距離
def m_add(a,b): return (a+b) % MOD
def lprint(l): print(*l, sep='\n')

import numpy as np
import decimal

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

print(math.floor(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 Decimal
import math
a, b = input().split()
res = Decimal(a) * Decimal(b)
print(math.floor(res))

Submission status: Accepted

Solution code:
from decimal import *
A, B = input().split()
a = Decimal(A)
b = Decimal(B)
print(Decimal(a*b).quantize(Decimal('0'), rounding=ROUND_DOWN))

Submission status: Accepted

Solution code:
A,B = map(str,input().split())
a = int(A)
b0 = int(B[0])
b1 =  int(B[2])
b2 =  int(B[3])
c = a*b0*100 + a*b1*10 + a*b2
print(c//100)

Submission status: Accepted

Solution code:
from decimal import *


A, B = input().split()

A = Decimal(A)
B = Decimal(B)

ans = Decimal((A*B)//1)
print(int(ans))

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
b = int(float(b) * 100 + 0.1)

print((a * b) // 100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import *

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

print("{}".format(int(a*b)))

Submission status: Accepted

Solution code:

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

C=int(A)
D=int(B[0]+B[2]+B[3])
#ans=(C*D//100)
print(C*D//100)

Submission status: Accepted

Solution code:
import sys
from decimal import *
a,b = map(str, sys.stdin.readline().rstrip("\n").split())
a = Decimal(a)
b = Decimal(b)
c = a*b
c.quantize(Decimal('0'), rounding=ROUND_DOWN)
print(int(c))

Submission status: Accepted

Solution code:
import numpy as np
import math
import collections
from decimal import *


S = input().split()
A = Decimal(S[0])
B = Decimal(S[1])


print(int(A * B))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal, getcontext

getcontext().prec = 128

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
import pprint
import fractions
import collections
import itertools
from decimal import *
A,B=map(str,input().split())
#print(A*B)
getcontext().prec=40
A=int(A)
#print(Decimal(A)*Decimal(B))

A=str(A)
A=list(map(int,A))
b=list(str(B))
B=[0]*3
#print(A,b)
N=len(A)                #Aの桁数
table=[[0 for _ in range(len(A)+1)] for _ in range(10)]
for i in range(1,10):
    career=0
    for j in range(N,0,-1):
        buf=A[j-1]*i+career
        career=buf//10
        table[i][j]=buf%10
    table[i][0]=career
#print(table)
A=list(A)
A.insert(0,0)
A.insert(len(A),0)
A.insert(len(A),0)

#print(A)
ans=[0]*(len(A))
B=[int(b[0]),int(b[2]),int(b[3])]
#print(B)
#print(ans)
for i in range(2,-1,-1):
    piv=B[i]
    buf=[]
    buf = table[piv]
    #print(buf)
    career=0
    for j in range(N,-1,-1):
        num=ans[j+i]+buf[j]+career
        career=num//10
        ans[j+i]=num%10
    #print(ans)
    #input()
ans=map(str,ans)
s="".join(ans)
print(int(s[:len(s)-2]))

Submission status: Accepted

Solution code:
a,b=input().split()
b=b[0]+b[2]+b[3]
length=len(a)
ans=0
for i in range(length):
    n=int(a[-i-1])*10**(i)
    for j in range(3):
        m=int(b[-j-1])*10**j
        ans+=n*m
print(ans//100)

Submission status: Accepted

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

getcontext().prec = 20

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

print(int(a*b))

Submission status: Accepted

Solution code:
import decimal

A,B = map(decimal.Decimal,input().split())
print((A*B).quantize(0,rounding=decimal.ROUND_FLOOR))

Submission status: Accepted

Solution code:
# import sys
# readline = sys.stdin.readline
# generator = (readline().strip() for _ in range(N))

# N, M = map(int, input().split())
# As = list(map(int, input().split()))
# queries = (input() for _ in range(N))


def solve():
    N, M = input().split()

    n = int(N)
    f = float(M)
    m = int(f * 100 + 0.1)
    ans = n * m // 100

    return ans


def main():
    print(solve())


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
import math 
def main():
    A, B = map(float, input().split())
    A = round(A)
    B = round(B*100)
    ans = round(A*B) 
    ans = ans//100
    print(ans)

if __name__ == '__main__':
    main()

Submission status: Accepted

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

A = Decimal(A)
B = Decimal(B)


print(int(A*B))

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:
A,B=map(str,input().split())
B=B.replace('.','')
k=int(A)*int(B)
k=k//100
print(k)

Submission status: Accepted

Solution code:
from fractions import Fraction
a, b = input().split()
A = int(a)
B = Fraction(b)
ans = A*B
ans = ans // 1
print(int(ans))

Submission status: Accepted

Solution code:
import math
import decimal

A, B = input().split()
a = decimal.Decimal(A)
b = decimal.Decimal(B)

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

Submission status: Accepted

Solution code:
def solve(a,b):  # fix inputs here
    a = int(a)
    res = int(b[0]) * 100 * a + int(b[2]) * 10 * a + int(b[3]) * 1 * a 
    return res//100

a,b = input().split()
res = solve(a,b)
print(res)

Submission status: Accepted

Solution code:
a,b = map(float, input().split())
'''b100 = int(b*100)
ab = int(a*b100)
print(int(ab//100))'''
import decimal
print(int(decimal.Decimal(int(a)) * decimal.Decimal(str(b))))

Submission status: Accepted

Solution code:
import math
import decimal

temp = [i for i in input().split()]
A = int(temp[0])
B = decimal.Decimal(temp[1])

print(int(A*B))

Submission status: Accepted

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

A = Decimal(A)
B = Decimal(B)

print(int(A*B))

Submission status: Accepted

Solution code:
A, B = map(str, input().split())
A = int(A)
B = int(B.replace('.', ''))
tmp = str(A * B)
if len(tmp) >= 3:
    print(tmp[:-2])
else:
    print(0)

Submission status: Accepted

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

Submission status: Accepted

Solution 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)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import *
exp = Decimal(10**23)
A,B = map(str, input().split())
res = int(A)*Decimal(B)
print(math.floor(res))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
from decimal import *

if __name__=="__main__":
    A, B = input().split(' ')
    A = int(A)
    B = Decimal(B)
    print(int(A*B))

Submission status: Accepted

Solution code:
dat = input().split(' ')
a = int(dat[0])
b_top = int(dat[-1].split('.')[0])
b_bot = int(dat[-1].split('.')[1])
b = b_top*100 + b_bot

ans = a * b
if ans < 100:
    print(0)
else:
    print(str(ans)[:-2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal
a, b = map(str, input().split())
ans = Decimal(a) * Decimal(b)
print("%d"%(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = input().split()
A = int(A)
B = B.replace(".", "")
B = int(B)
AB = A*B
AB = str(AB)
AB = "00" + AB
AB = AB[:-2]
print(int(AB))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# C

import sys
from decimal import Decimal
from collections import defaultdict, deque
from heapq import heappush, heappop
import math
import bisect
input = sys.stdin.readline

# 再起回数上限変更
# sys.setrecursionlimit(1000000)

a, b = input().split()

print(int(Decimal(a) * Decimal(b)))

Submission status: Accepted

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

A_int = int(A)

B_int = int(B.split('.')[0])
B_float = int(B.split('.')[1])

import math
import decimal



print(A_int*B_int+A_int*B_float//100)

Submission status: Accepted

Solution code:
A ,B= map(float,input().split())
A = int(A)
C = str(B)
if B == 10.0:
  D = 1000
elif B == 0.0:
  D = 0
elif len(C) == 4:
  D = int(C[-1]) + int(C[-2])*10 + int(C[-4])*100
elif len(C) == 3:
  D = int(C[-1])*10 + int(C[-3])*100
  
ans = A*D
ans = ans//100
print(ans)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

import sys
import math
from decimal import Decimal, ROUND_DOWN


debug = False

def log(text):
    if debug:
        print(text)

def parse_input(lines_as_string = None):

    global debug
    lines = []
    if lines_as_string is None:
        debug = False
        # for line in sys.stdin:
        #     lines.append(line)
        lines.append(input())
    else:
        debug = True
        lines = [e for e in lines_as_string.split("\n")][1:-1]

    tokens = lines[0].split(' ')
    a = tokens[0]
    b = tokens[1]

    return (a, b)


def solve(a0, b0):

    a = int(a0)    
    b = float(b0)
#    c =  math.floor(a * (b * 1000) // 1000)

#    b2 = int(math.floor(b * 100))
#    c = math.floor((a * b2) // 100)

    a =  Decimal(a0)
    b =  Decimal(b0)
    
    ab = a * b
    c = int(ab.quantize(Decimal('1.'), rounding=ROUND_DOWN))
    
    if debug:
        print(c)

    return c
    


def main():
    # 出力
    result = solve(*parse_input())
    if isinstance(result, list):
        for r in result:
            print("%s" % r, sep='')
    else:
        print("%s" % result, sep='')

if __name__ == '__main__':

    main()

Submission status: Accepted

Solution code:
from decimal import *
import math

A,B = input().split()
a = Decimal(A)
b = Decimal(B)

result = Decimal(str(a*b)).quantize(Decimal('.01'), rounding=ROUND_DOWN)

print(int(result))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B=input().split()
A = int(A)
B = B.replace('.','')
B = int(B)
ans = int(A*B//100)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal
import math

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

Submission status: Accepted

Solution code:
from decimal import Decimal

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

Submission status: Accepted

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

# A = Decimal(A)
# B = Decimal(B)
# print(A, B)
C = A*B
# print(C)
# print(C)
print(Decimal(math.floor(C)))

Submission status: Accepted

Solution code:
import sys
import  math
import fractions
from collections import defaultdict
stdin = sys.stdin
     
ns = lambda: stdin.readline().rstrip()
ni = lambda: int(stdin.readline().rstrip())
nm = lambda: map(int, stdin.readline().split())
nl = lambda: list(map(int, stdin.readline().split()))

A2,B2=map(str, stdin.readline().split())
A=int(A2)
tmp=list(B2)


B1=int(tmp[0])
B2=int(tmp[2])
B3=int(tmp[3])

ans=0
ans+=B1*A
ans+=(A*B2)//10
ans+=(A*B3)//100
if(10<=(((A*B2)%10)+(((A*B3)%100)//10))):
    ans+=1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = list(input().split())

A = int(A)
B = int(B[0] + B[2:])

C = A * B // 100

print(C)

Submission status: Accepted

Solution code:
from decimal import Decimal

for _ in range(1):
    a = list(input().split(' '))
    A = int(a[0])
    B = Decimal(a[1])

ans = str(A * B)
idx = 0
for i in range(len(ans)):
    if ans[i] == '.':
        idx = i
        break
print(ans[:i])

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a)
c,d = b.split('.')
c = int(c)
d = int(d)
print(a*c+a*d//100)

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_DOWN, ROUND_FLOOR
from decimal import getcontext

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

ans = (Decimal(a) * Decimal(b)).quantize(Decimal("0"), rounding=ROUND_FLOOR)

print(ans)

Submission status: Accepted

Solution code:
import math
#import numpy as np
import queue
from collections import deque,defaultdict
import heapq
from sys import stdin,setrecursionlimit
#from scipy.sparse.csgraph import dijkstra
#from scipy.sparse import csr_matrix
ipt = stdin.readline
setrecursionlimit(10**7)

a,b = input().split()
if len(a)>2:
    a1 = int(a[:-2:])
    a2 = int(a[-2::])
    b1 = int(float(b))
    b2 = int(b[2::])
    print(a1*b1*100+a1*b2+a2*b1+a2*b2//100)
else:
    a2 = int(a)
    b1 = int(float(b))
    b2 = int(b[2::])
    print(a2*b1+a2*b2//100)

Submission status: Accepted

Solution code:
import decimal
n,m = input().split()

a = decimal.Decimal(n)
b = decimal.Decimal(m)
ans = str(a*b).split('.')[0]
print(ans)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**6)

#a = int(input())
#b = list(map(int, input().split()))
a, b = map(str, input().split())
#s = input()
#s,t = input().split()
#
#readline = sys.stdin.readline
#n,m = [int(i) for i in readline().split()]
#ab = [[int(i) for i in readline().split()] for _ in range(n)]

from decimal import *

ans = Decimal(a)*Decimal(b)
ans = int(ans)

print(ans)

Submission status: Accepted

Solution code:
import sys
import decimal
from decimal import Decimal

sys.setrecursionlimit(10 ** 6)
INF = float("inf")
MOD = 10 ** 9 + 7


def input():
    return sys.stdin.readline().strip()


def main():
    A, B = input().split()
    A = Decimal(A)
    B = Decimal(B)
    ans = A * B
    ans = ans.quantize(decimal.Decimal("1"), rounding=decimal.ROUND_FLOOR)
    print(ans)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import math

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

b1 = int(b[0]) * 100
b2 = int(b[2]) * 10
b3 = int(b[3])

ans = a * b1 + a * b2 + a * b3
ans = str(ans)

if len(ans) >= 3:
	print(ans[:-2])
else:
	print(0)

Submission status: Accepted

Solution code:
import sys
sys.setrecursionlimit(10**8)
def ii(): return int(sys.stdin.readline())
def mi(): return map(str, sys.stdin.readline().split())
def li(): return list(map(int, sys.stdin.readline().split()))
def li2(N): return [list(map(int, sys.stdin.readline().split())) for i in range(N)]
def dp2(ini, i, j): return [[ini]*i for i2 in range(j)]
def dp3(ini, i, j, k): return [[[ini]*i for i2 in range(j)] for i3 in range(k)]
#import bisect #bisect.bisect_left(B, a)
#from collections import defaultdict #d = defaultdict(int) d[key] += value
#from collections import Counter # a = Counter(A).most_common()
#from itertools import accumulate #list(accumulate(A))
import math
from decimal import Decimal

A, B = mi()
A = Decimal(A)
B = Decimal(B)
print(A * B//1)

Submission status: Accepted

Solution code:
from decimal import *
a, b = input().split()
n = Decimal(a)
m = Decimal(b)
print(int(n * m))
print("\n")

Submission status: Accepted

Solution code:
# decimalモジュールをインポート
from decimal import *

import math
A, B = map(str, input().split())
ans = Decimal(A) * Decimal(B)
ans = math.floor(ans)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

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

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

Submission status: Accepted

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

print((a*b).quantize(Decimal("0"), rounding=ROUND_DOWN))

Submission status: Accepted

Solution code:
import decimal
import math


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

Submission status: Accepted

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

b_sp = b.split('.')
b_seisu = int(b_sp[0])
b_shosu = 0
if(len(b_sp) > 1):
    b_shosu = int(b_sp[1])

# print(b_seisu, b_shosu)

mul = int(a)*(100*b_seisu + b_shosu)
mul_seisu = mul//100
print(mul_seisu)

Submission status: Accepted

Solution code:
import sys, io, os, re
import bisect
from pprint import pprint
from math import sin, cos, pi, radians, sqrt, floor
from copy import copy, deepcopy
from collections import deque
from fractions import gcd
from functools import reduce

def array1(n): return [0] * n
def array2(n, m): return [[0] * m for x in range(n)]
def array3(n, m, l): return [[[0] * l for y in xrange(m)] for x in xrange(n)]

arr = list(sys.stdin.readline().strip().split())
arr[0] = int(arr[0])
arr[1] = int(arr[1][0])*100+int(arr[1][2])*10+int(arr[1][3])

print((arr[0]*arr[1])//100)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
from decimal import Decimal

input = sys.stdin.readline


def S():
    return input().rstrip()


def I():
    return int(input())


def MI():
    return map(float, input().split())


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

print(int(a * b))

Submission status: Accepted

Solution code:
def ii():return int(input())
def iim():return map(int,input().split())
def iil():return list(map(int,input().split()))
a,b = map(str,input().split())
a = int(a)
bint,bdec = b.split('.')
bint = int(bint)
bdec = int(bdec)
ans = a*bint+(a*bdec//100)
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_FLOOR

a, b = input().split()
x = Decimal(a)
y = Decimal(b)
seki = x*y
print(seki.quantize(Decimal("0"), rounding=ROUND_FLOOR))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
x = input().split()
# print(x)

a = int(x[0])
# b = float(x[1])
b1 = int(x[1][0])
b2 = int(x[1][2:])

ans = a*b1+(a*b2//100)

print(ans)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from decimal import Decimal
import math

A, B = input().split()

answer = math.floor(Decimal(A) * Decimal(B))
print(answer)

Submission status: Accepted

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