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:
import math

a,b=input().split()
a=int(a)
b=float(b)
b=round(b*100)
A=a*b
A=A//100
print(A)

Submission status: Accepted

Solution code:
A,B=map(str,input().split())
A=int(A)
B=list(B)
if len(B)<=2:
    B.append('0')
    B.append('0')
elif B[-3]=='.':
        B.remove('.')
elif B[-2]=='.' :
    B.remove('.')
    B.append('0')
else:
    B.append('0')
    B.append('0')
n=len(B)
b=sum(10**(n-1-j)*int(B[j]) for j in range(n))
ans=list(str(A*b))
if len(ans)<=2:
    ans='0'
else:
    ans.pop(len(ans)-1)
    ans.pop(len(ans)-1)
n2=len(ans)
trueans=sum(10**(n2-1-j)*int(ans[j]) for j in range(n2))
print(trueans)

Submission status: Accepted

Solution code:
# import sys
# import math #sqrt,gcd,pi
# import decimal
# import queue # queue
# import bisect
# import heapq # priolity-queue
# import time
# from itertools import product,permutations,\
#     combinations,combinations_with_replacement
# 重複あり順列、順列、組み合わせ、重複あり組み合わせ
# import collections # deque
# from operator import itemgetter,mul
# from fractions import Fraction
# from functools import reduce

mod = int(1e9+7)
# mod = 998244353
INF = 1<<29
lINF = 1<<35

def readInt():
    return list(map(int,input().split()))

def main():
    a,b = input().split()
    a = int(a)
    s = b[0]
    t = b[2:4]
    b = int(s+t)
    print(a*b//100)
    return

if __name__=='__main__':
    main()

Submission status: Accepted

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

ans = a * b

print(math.floor(ans))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import decimal
from decimal import Decimal, ROUND_FLOOR

A, B = input().split()

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

C = A * B

D = C.quantize(Decimal("0"), rounding = ROUND_FLOOR)

print(D)

Submission status: Accepted

Solution code:
import math
a, b= list(map(str, input().split()))
a_=int(a)
# 少数何桁か
b_=int(b.replace('.',''))
if len(str((a_*b_)))<3:
    print(0)
    exit()
seisu=str((a_*b_))[0:len(str(a_*b_))-2]
print(seisu)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

def main():
  A, B = list(map(str, input().split()))
  A = int(A)
  d, f = B.split('.')
  d = int(d)

  ans = 0

  ans += A * d

  fl = A * int(f)

  print(ans + (fl // 100))



if __name__ == "__main__":
  main()

Submission status: Accepted

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

if __name__ == "__main__":
    c()

Submission status: Accepted

Solution code:
x, y = input().split()
x = int(x)
y = int(y.replace(".", ""))
print((x*y)//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))

#b=int(B*100)
#ans100bai=A*b
#if len(str(ans100bai))>2:
#	print(str(ans100bai)[:-2])
#else:
#	print(0)

# 2darray [[0] * 4 for i in range(3)]

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
 
A, B = input().split()
A = int(A)
B = int((float(B)+0.005)*100)
 
print(int((A*B)//100))

Submission status: Accepted

Solution code:
import math
A,B = map(float,input().split())
A = int(A)
B = int(B * 1000)

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
l=input().split()
a=int(l[0])
b=int(float(l[1])*100+0.1)
print(int((a*b)//100))

Submission status: Accepted

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

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

Submission status: Accepted

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

print(int(Decimal(s[0]) * Decimal(s[1])))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal


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

c = a*b

print(int(c))

Submission status: Accepted

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

b = format(round(b, 2))
ans = Decimal(a) * Decimal(b)

print(int(ans))

Submission status: Accepted

Solution code:
import numpy as np
a,b=(np.float128(x) for x in input().split())

ans=a*b//1
print(int(ans))

Submission status: Accepted

Solution code:
from decimal import Decimal

A,B = input().split()

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

c=a*b

print(int(c))

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN
from math import floor
i = input().split()
A = int(i[0])
B = Decimal(i[1])

C = floor(A * B)
print(C)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

li = input().split()
x = Decimal(li[0]) * Decimal(li[1])

print(math.floor(x))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_FLOOR

A, B = input().split()
A = Decimal(A)
B = Decimal(B)
res = A * B
print(res.quantize(Decimal("1"), rounding=ROUND_FLOOR))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
b = int(b.replace('.', ''))
ab = str(a*b)
print(int(('00' +str(a*b))[:-2]))

Submission status: Accepted

Solution code:
from decimal import Decimal

a,b = input().split()

res = Decimal(a) * Decimal(b) 

print(int(res))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys,collections as cl,bisect as bs,math
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): #intのlist
	return list(map(int,input().split()))
def m(): #複数文字
	return map(float,input().split())
def onem(): #Nとかの取得
	return int(input())
def s(x): #圧縮
	a = []
	if len(x) == 0:
		return []
	aa = x[0]
	su = 1
	for i in range(len(x)-1):
		if aa != x[i+1]:
			a.append([aa,su])
			aa = x[i+1]
			su = 1
		else:
			su += 1
	a.append([aa,su])
	return a
def jo(x): #listをスペースごとに分ける
	return " ".join(map(str,x))
def max2(x): #他のときもどうように作成可能
	return max(map(max,x))
def In(x,a): #aがリスト(sorted)
    k = bs.bisect_left(a,x)
    if k != len(a) and a[k] ==  x:
        return True
    else:
        return False

def pow_k(x, n):
    ans = 1
    while n:
        if n % 2:
            ans *= x
        x *= x
        n >>= 1
    return ans

"""
def nibu(x,n,r):
	ll = 0
	rr = r
	while True:
		mid = (ll+rr)//2

	if rr == mid:
		return ll
	if (ここに評価入れる):
		rr = mid
	else:
		ll = mid+1
"""

a,b = m()

b = int(b*1000)

	


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

Submission status: Accepted

Solution code:
import math
import re
from decimal import *

a = input()
b = int(re.sub('\s.+$','',a))
c = Decimal(re.sub('^.+\s','',a))
d = Decimal(b * c)
d = math.floor(d)
d = int(d)

print(d)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	A, B = list(input().split())
	A = int(A)
	Bint = int(B[0] + B[2] + B[3])
	# print(Bint)
	print(int(A * Bint // 100))


if __name__ == '__main__':
	main()

Submission status: Accepted

Solution code:
a, b = [s for s in input().split(" ")]
a = int(a)
b = int(b.replace(".", ""))
h = b // 100
t = (b - h * 100) // 10
o = (b - h * 100 - t * 10)
ah = a * h
at = a * t
ao = a * o

print((ah * 100 + at * 10 + ao) // 100)

Submission status: Accepted

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

x = int(a)
y = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
b_list = list(b.split("."))
b = int(b_list[0])*100
b += int(b_list[1])
print(a*b//100)

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_DOWN

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

print(int(A * Decimal(B).quantize(Decimal('0.01'), rounding=ROUND_DOWN)))

Submission status: Accepted

Solution code:
from decimal import *

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

Submission status: Accepted

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

n = 2  # 小数第2位
b = Decimal(str(b)).quantize(Decimal(str(10**(n*-1))), rounding=ROUND_DOWN)


print(int(a*b))

Submission status: Accepted

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

a = int(A)
b = int(B[0])
b_ = int(B[2])
b__ = int(B[3])

c = a * b * 100
c_ = a * b_ * 10
c__ = a * b__

ans = (c + c_ + c__) // 100

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import itertools
from collections import deque,defaultdict,Counter
from itertools import accumulate
import bisect
from heapq import heappop,heappush,heapify
import math
from copy import deepcopy
import queue
import numpy as np
#import sympy as syp(素因数分解とか)
Mod = 1000000007
  
def sieve_of_eratosthenes(n):
    if not isinstance(n,int):
        raise TypeError("n is not int")
    if n<2:
        raise ValueError("n is not effective")
    prime = [1]*(n+1)
    for i in range(2,int(math.sqrt(n))+1):
        if prime[i] == 1:
            for j in range(2*i,n+1):
                if j%i == 0:
                    prime[j] = 0
    res = []
    for i in range(2,n+1):
        if prime[i] == 1:
            res.append(i)
    return res

 
class UnionFind:
    def __init__(self,n):
        self.parent = [i for i in range(n+1)]
        self.rank = [0 for i in range(n+1)]
    
    def findroot(self,x):
        if x == self.parent[x]:
            return x
        else:
            y = self.parent[x]
            y = self.findroot(self.parent[x])
            return y
    
    def union(self,x,y):
        px = self.findroot(x)
        py = self.findroot(y)
        if px < py:
            self.parent[y] = px
        else:
            self.parent[px] = py
 
    def same_group_or_no(self,x,y):
        return self.findroot(x) == self.findroot(y)

def main():  #startline-------------------------------------------
    a, b = input().split()
    b = b.replace(".", "")
    print(int(a)*int(b)//100)   
if __name__ == "__main__":
    main() #endline===============================================

Submission status: Accepted

Solution code:
#include <CodeforcesSolutions.h>
#include <ONLINE_JUDGE <solution.cf(contestID = "1359",problemID = "C",method = "GET")>.h>
"""
    Author : thekushalghosh
    Team   : CodeDiggers
 
    I prefer Python language over the C++ language :p :D
        
    Visit my website : thekushalghosh.github.io
"""
import sys,math,cmath,time,decimal
start_time = time.time()
##########################################################################
################# ---- THE ACTUAL CODE STARTS BELOW ---- #################
 
def solve():
    a,b = insr().split(" ")
    q = b.index(".")
    qw = b[:q]
    w = int(b[:q] + b[q + 1:])
    qq = len(b) - q - 1
    if len(str(int(a) * w)) <= qq:
        print(0)
        return
    print(str(int(a) * w)[:- q - 1])
                
################## ---- THE ACTUAL CODE ENDS ABOVE ---- ##################
##########################################################################
 
def main():
    global tt
    if not ONLINE_JUDGE:
        sys.stdin = open("input.txt","r")
        sys.stdout = open("output.txt","w")
    t = 1
    for tt in range(t):
        solve()
    if not ONLINE_JUDGE:
        print("Time Elapsed :",time.time() - start_time,"seconds")
    sys.stdout.close()
    
#---------------------- USER DEFINED INPUT FUNCTIONS ----------------------#
def inp():
    return(int(input()))
def inlt():
    return(list(map(int,input().split())))
def insr():
    return(input().strip())
def invr():
    return(map(float,input().split()))
 
#------------------ USER DEFINED PROGRAMMING FUNCTIONS ------------------#
def counter(a):
    q = [0] * max(a)
    for i in range(len(a)):
        q[a[i] - 1] = q[a[i] - 1] + 1
    return(q)
 
def string_counter(a):
    q = [0] * 26
    for i in range(len(a)):
        q[ord(a[i]) - 97] = q[ord(a[i]) - 97] + 1
    return(q)
 
ONLINE_JUDGE = __debug__
if ONLINE_JUDGE:
    input = sys.stdin.readline
    
main()

Submission status: Accepted

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

print(int(c))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
str = input()

str2 = str.split(" ")

A = int(str2[0])
B = Decimal(str2[1])


res = math.floor(A * B)
print(res)

Submission status: Accepted

Solution code:
from decimal import Decimal
import math

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

print(math.floor(a*b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import trunc
a, b = input().split()
a = int(a)
b = list(b)
b.remove(".")
b = "".join(b)
b.lstrip("0")
b = int(b)
answ = list(str(a*b))
answ.insert(-2, ".")
final = ""
for x in answ:
	if x != ".":
		final += x
	else:
		break
if final == "":
	print(0)
else:
	print(final)

Submission status: Accepted

Solution code:
from decimal import Decimal,ROUND_FLOOR
[A,B] = input().split()
A = Decimal(A)
B = Decimal(B)

print((A*B).quantize(Decimal('0'),rounding = ROUND_FLOOR))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
text = input().split()
A = int(text[0])
B = int(text[1].replace(".", ""))
C = B
if(A * C < 100):
    print(0)
else:
    print(str(A * C)[:-2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from decimal import Decimal

a, b = input().split()

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

ans = math.floor(a * b)

print(ans)

Submission status: Accepted

Solution code:
A,B = map(float,input().split( ))
A = int(round(A))
B_0 = B//1
B_1 = B%1
ans_0 = round(A*B_0)
ans_1 = A*round(B_1*100)//100
print(int(round(ans_0 + ans_1)))

Submission status: Accepted

Solution code:
import math
from decimal import *

sa, sb = input().split()
a = Decimal(sa)
b = Decimal(sb)
lb = Decimal(b * Decimal(100))

ans = Decimal(Decimal(a * lb) // Decimal(100))
print(int(ans))

Submission status: Accepted

Solution code:
#C - Multiplication 3
from decimal import Decimal
A,B= map(str,input().split())
A2 = Decimal(A)
B2 = Decimal(B)
#print(A*B*100000)
print(int(A2*B2))

Submission status: Accepted

Solution code:
import bisect
import collections
import copy
import functools
import heapq
import math
import sys
from collections import deque
from collections import defaultdict
input = sys.stdin.readline
MOD = 10**9+7

a,b = map(str,(input().split()))
a = int(a)
b = list(b)
c = []
now = float("inf")
for i in range(len(b)):
    if b[i] == ".":
        now = i
    if i > now:
        c.append(b[i])
b = b[:now]

bnew = int("".join(b))
cnew = int("".join(c))

ans = a*bnew
ans += a*cnew//100
print(ans)

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = tuple(input().split())
b_1, b_2 = tuple(map(int, b.split('.')))
a = int(a)

print(a * b_1 + (a * b_2 // 100))

Submission status: Accepted

Solution code:
import decimal
ab = input('')
a = decimal.Decimal(ab.split(' ')[0])
b = decimal.Decimal(ab.split(' ')[1])
result =  a*b
import math
result = math.floor(result)
print(result)

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
A,B = map(str,input().split())

A = int(A)
B = Decimal(B)
print(int(A*B))

Submission status: Accepted

Solution code:
from decimal import Decimal

x = input().split()
a = int(x[0])
#b = float(x[1])
b = Decimal(x[1])


if a == 0:
    print("0")
else:
    c = a*b
    print(int(c))

Submission status: Accepted

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

a *= b

print(math.floor(a))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline
import math
from decimal import Decimal
def main():
    inp = input().split()
    a = int(inp[0])
    b = Decimal(inp[1])
    ans = a * b
    ans = math.floor(ans)
    print(ans)
if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A , B = input().strip().split(" ") ;  
A = int ( A ) ;
B = B.replace ( '.' , '' ) ;
C = pow ( 10 , len(B) -1 ) ;
print ( A * int(B)  // C ) ;

Submission status: Accepted

Solution code:
from fractions import Fraction
A, B =input().split()
A = Fraction(A)
B = Fraction(B)
print(int(A*B))

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:
import math
from decimal import *
A, B = (i for i in input().split())  

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

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:
a,b = map(str,input().split())
from decimal import *
import math
result = Decimal(a) * Decimal(b)
print(math.floor(result))

Submission status: Accepted

Solution code:
from decimal import Decimal, getcontext, ROUND_DOWN

def main():
    getcontext().rounding = ROUND_DOWN
    A, B = input().split()

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

    A = A * B
    print(int(A))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from decimal import Decimal

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

Submission status: Accepted

Solution code:
import sys
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))  #空白あり
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))  #空白なし
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())  #空白あり
def LS2(): return list(sys.stdin.readline().rstrip())  #空白なし

AB = LS2()

s = 0
for i in range(len(AB)):
    if AB[i] == ' ':
        s = i
        break
a = ''
for i in range(s):
    a += AB[i]
b = AB[s+1]+AB[s+3]+AB[s+4]

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

Submission status: Accepted

Solution code:
a, b = input().split()
if a == "0" or b == "0.00":
  print(0)
  exit()
  
a = int(a)
b = int(b[0])*100 + int(b[2])*10 + int(b[3])
ans = a*b//100
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_FLOOR
a,b = input().split()
c = Decimal(a) * Decimal(b)
print(c.quantize(Decimal("0"),rounding = ROUND_FLOOR))

Submission status: Accepted

Solution code:
import math
A,B = map(float,input().split())
ans = 0
# if A > 100:
#     B *= 100
#     ans = int(A) * int(B)
#     ans = ans//100
#     print(ans)
# else:
#     ans = A*B
#     # print(ans)
#     print(int(ans))

B *= 1000
ans = int(A) * int(B)
ans = ans//1000
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal,ROUND_FLOOR
a,b = map(str,input().split())
a = Decimal(a)
b = Decimal(b)
x = a*b
y= x.quantize(Decimal('0'),rounding=ROUND_FLOOR)
print(y)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal

a,b = input().split()

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

Submission status: Accepted

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

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

print(int(A * B))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

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

print(math.floor(A*B))

Submission status: Accepted

Solution code:
from decimal import Decimal, ROUND_FLOOR
A = input().split()
answer = Decimal(A[0])*Decimal(A[1])
print(Decimal(str(answer)).quantize(Decimal('0'), rounding=ROUND_FLOOR))

Submission status: Accepted

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

from decimal import Decimal, getcontext
from math import floor
getcontext().prec = 30
a = Decimal(str(a))
b = Decimal(str(b))
print(floor(a * b))

Submission status: Accepted

Solution code:
from decimal import Decimal
one, two = map(Decimal, input().split())
result = Decimal(one) * Decimal(two)

print(int(result))

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()
from math import floor,ceil,sqrt,factorial,log
from heapq import heapify, heappop, heappush, heappushpop
from collections import Counter,defaultdict,deque
from itertools import accumulate,permutations,combinations,product,combinations_with_replacement
from bisect import bisect_left,bisect_right
from decimal import Decimal
inf = float('inf')
mod = 1000000007

a, b = input().split()

a = int(a)
b = list(b)
for i in range(len(b)):
    if b[i] == '.':
        pos = i

x = len(b) - pos - 1
b.pop(pos)
b = int(''.join(b))

ans = a * b
ans = str(ans)
if len(ans) < 2:
    ans = int(int(ans) * 10**(-2))
else:
    ans = int(ans[:-pos -1])

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a,b = input().split()
a = int(a)
c1 = int(b[0])
c2 = int(b[2])
c3 = int(b[3])
ans = a*(100*c1 + 10*c2 + c3)
print(math.floor(ans//100))

Submission status: Accepted

Solution code:
from fractions import Fraction

a, b = input().split()
a = int(a)
num = 0
frac = 0
for i in range(len(b)):
    if b[i] == '.':
        num = b[:i]
        j = i + 1
        frac = b[j:]
num = int(num)
num *= 100
frac = int(frac)
val = num + frac
c = a * val
c = c // 100
d = c
d = int(d)
print(d)

Submission status: Accepted

Solution code:
tmp = input().split(' ')
a = int(tmp[0])
b = float(tmp[1])
print(a * round(b * 100) // 100)

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

A, B = [i for i in input().split()]
a = int(A)
b = Decimal(B)
#ans = math.floor(A*B)
ans = int(a*b)
print(ans)

Submission status: Accepted

Solution code:
from decimal import Decimal
import math

a, b = input().split()

c = Decimal(a) * Decimal(b)

print(math.floor(c))

Submission status: Accepted

Solution code:
from sys import stdin

a, b = stdin.readline().split()
na = int(a)
nbDec, nbFlt = b.split('.')
nb = (int(nbDec)*100) + int(nbFlt)
print(na*nb//100)

Submission status: Accepted

Solution code:
import math
import decimal
i = list(map(decimal.Decimal, input().split()))
print(math.floor(i[1]*i[0]))

Submission status: Accepted

Solution code:
q = input().split(" ")
A = int(q[0])
B = q[1].split(".")
#print(B)
b0 = B[0]
b1 = B[1]
if b1[0]=="0":
  b1 = b1[1]

s = str(A*int(b1)//100)
#print(s)
print(A*int(b0) + int(s))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

if a==0 or b==0.00:
    print(0)
    sys.exit()

ans = int(a*b)

print(ans)

Submission status: Accepted

Solution code:
import sys
import math
from decimal import *

def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())

def LF(): return list(map(float,sys.stdin.readline().rstrip().split()))

A,B = LS()


# A = int(A)
# B = int(B*100)
# ab = A*B

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

Submission status: Accepted

Solution code:
import math
import itertools
import functools
import numpy as np
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN, ROUND_DOWN


a, b = map(str, input().split())
print((Decimal(a) * Decimal(b)).quantize(Decimal('0'), rounding=ROUND_DOWN))
# print(math.floor(2.5))

Submission status: Accepted

Solution code:
import math
from decimal import Decimal
x = list(input().split())

a = int(x[0])
b = Decimal(x[1])

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

Submission status: Accepted

Solution code:
from decimal import Decimal

A, B = input().split()

print(int(Decimal(A) * Decimal(B)))

Submission status: Accepted

Solution code:
a, b = input().split()
b = int(b[0] + b[2:])
print(str(int(a) * b)[0:-2] or 0)

Submission status: Accepted

Solution code:
import math
a, b = input().split()
a = int(a)
b = int(round(float(b),3)*1000)

print((a*b)//1000)

Submission status: Accepted

Solution code:
import numpy as np
A,B = map(np.float128,input().split())
print(int(A*B))

Submission status: Accepted

Solution code:
import math
from decimal import *

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

print(math.floor(ans))

Submission status: Accepted

Solution code:
from collections import Counter,defaultdict,deque
from heapq import heappop,heappush,heapify
from bisect import bisect_left,bisect_right 
import sys,math,itertools,fractions,pprint
sys.setrecursionlimit(10**8)
mod = 10**9+7
INF = float('inf')
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))

a,b = input().split()
a = int(a)
b = list(b)
c = ''
for i in range(4):
    if i != 1:
        c += b[i]
b = int(c)
# print(a,b)
# b = int(b*10000)
# print(b)
print(int((a*b)//100))

Submission status: Accepted

Solution code:
from decimal import Decimal
A, B = input().split()
# Decimalで演算をする例
answer = Decimal(A) * Decimal(B)

answer = int(answer)
print(answer)

Submission status: Accepted

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

a = int(a)
b_unchi = b.split(".")
b_int = int(b_unchi[0])
b_float = int(b_unchi[1])
bbb = b_int * 100 + b_float
s = a * bbb
print(s // 100)