AtCoder Beginner Contest 169 - Multiplication 3

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-----
198 1.10

-----Sample Output-----
217

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

Source: atcoder | Difficulty: EASY


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


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


import math
(A, B) = map(float, input().split())
B = B * 100
ans = int(A) * round(B) // 100
print(ans)


import math
from decimal import *
(a, b) = map(str, input().split())
a_ = Decimal(a)
b_ = Decimal(b)
print(math.floor(a_ * b_))


(a, b) = map(float, input().split())
a = int(a)
b = int((b + 10 ** (-8)) * 100)
print(a * b // 100)


import math
import decimal
(A, B) = input().split(' ')
answer = math.floor(int(A) * decimal.Decimal(B))
print(answer)


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


import decimal as d
(a, b) = map(d.Decimal, input().split())
print(int(a * b))


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


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


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


(x, y) = input().split()
x = int(x)
y = int(y.replace('.', ''))
print(x * y // 100)


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


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


import math

def main() -> None:
	(a, b) = input().split()
	print(int(a) * int(b.replace('.', '')) // 100)
	return

def __starting_point():
	main()
__starting_point()


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


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


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


(a, b) = map(str, input().split())
a = int(a)
li_b = []
for i in range(4):
	B = b[i]
	if B != '.':
		li_b.append(int(B))
b = 100 * li_b[0] + 10 * li_b[1] + li_b[2]
ans = a * b // 100
print(ans)


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


(A, B) = input().split()
a = int(A)
b = B[0] + B[2] + B[3]
print(a * int(b) // 100)


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


import math
from decimal import *
(a, b) = map(str, input().split())
ans = Decimal(a) * Decimal(b) // 1
print(ans)


(a, b) = map(str, input().split())
(i, f) = (b.split('.')[0], b.split('.')[1][0:2])
b = int(i) * 100 + int(f)
print(int(a) * b // 100)


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


(a, b) = input().split()
print(int(a) * int(''.join(b.split('.'))) // 100)


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


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


def LS():
	return list(input().split())
(A, B) = LS()
A = int(A)
B = B.replace('.', '', 1)
B = int(B)
ans = A * B
ans //= 100
print(ans)


def main():
	from decimal import Decimal
	(N, M) = (Decimal(i) for i in input().split())
	print(int(N * M))

def __starting_point():
	main()
__starting_point()


import sys
from collections import deque, defaultdict, Counter
from itertools import accumulate, product, permutations, combinations
from operator import itemgetter
from bisect import bisect_left, bisect_right
from heapq import heappop, heappush
from math import ceil, floor, sqrt, gcd, inf
from copy import deepcopy
import numpy as np
import scipy as sp
INF = inf
MOD = 1000000007
(a, b) = input().split()
tmp = 0
res = 0
a = int(a)
b = int(b.replace('.', ''))
res = a * b // 100
print(res)


a = input().split()
p = int(a[0])
q = round(float(a[1]) * 100)
print(p * q // 100)


(a, b) = input().split()
a = int(a)
b = 100 * float(b) + 0.05
print(a * int(b) // 100)


(a, b) = map(str, input().split())
b = b[0:1] + b[2:4]
print(int(a) * int(b) // 100)


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


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


s = input()
print(int(s[:-4]) * int(s[-4] + s[-2:]) // 100)


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


(a, b) = input().split()
a = int(a)
(b, d) = map(int, b.split('.'))
print(a * b + a * d // 100)


(a, B) = input().split()
a = int(a)
i = 2
ans = 0
for b in B:
	if b == '.':
		continue
	ans += int(b) * a * 10 ** i
	i -= 1
print(ans // 100)


(x, y) = input().split()
y = float(y) * 100 + 0.01
ans = int(x) * int(y)
print(ans // 100)


from math import floor
from fractions import Fraction
(a, b) = input().split()
a = int(a)
b = Fraction(b)
print(floor(a * b))


import decimal
(A, B) = map(decimal.Decimal, input().split())
print(A * B // 1)


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


(A, B) = map(float, input().split())
A = int(A)
B = int(B * 100 + 0.001)
print(A * B // 100)


(a, b) = map(str, input().split())
a = int(a)
b = int(b[:-3] + b[-2:])
print(a * b // 100)


(A, B) = input().split()
A = int(A)
B = int(float(B) * 100 + 0.5)
print(A * B // 100)


from decimal import Decimal
from decimal import ROUND_FLOOR
(A, B) = [Decimal(i) for i in input().split()]
print((A * B).quantize(Decimal(0), rounding=ROUND_FLOOR))


import math
(a, b) = list(map(float, input().split()))
a = int(a)
b = int(round(b * 100))
ans = a * b
ans = ans // 100
print(ans)


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


(A, B) = map(lambda x: int(x.replace('.', '')), input().split(' '))
print(A * B // 100)


(X, Y) = input().split()
Y = Y.replace('.', '')
print(int(X) * int(Y) // 100)


import sys
input = sys.stdin.readline

def main():
	(a, b) = input().split()
	(c, d) = b.split('.')
	if len(d) == 1:
		d = d + '0'
	(p, q) = (int(a), int(c) * 100 + int(d))
	ans = p * q // 100
	print(ans)

def __starting_point():
	main()
__starting_point()


from decimal import *
(A, B) = list(map(Decimal, input().split()))
print(int(A * (B * 100) // 100))


inputs = input().split(' ')
product = int(inputs[0]) * round(float(inputs[1]) * 100)
print(product // 100)


x = input().split()
a = int(x[0])
b = int(x[1].replace('.', ''))
print(a * b // 100)


def __starting_point():
	(A, B) = input().split()
	A = int(A)
	B = float(B)
	B = int(B * 100 + 0.5)
	print(A * B // 100)
__starting_point()


(A, B) = map(str, input().split())
print(int(A) * round(float(B) * 100) // 100)


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


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


import decimal
(A, B) = map(decimal.Decimal, input().split())
num = A * B
print(int(num) // 1)


(a, b) = input().split()
a = int(a)
b = int(float(b) * 100 + 0.1)
print(int(a * b // 100))


S = input()
x = S.replace('.', '')
(a, b) = map(int, x.split())
print(int(a * b // 100))


(A, B) = input().split()
A = int(A)
B = int(''.join([b for b in B if b != '.']))
print(A * B // 100)


(x, y) = list(input().split())
x = int(x)
y = int(y[0] + y[2] + y[3])
print(x * y // 100)


(a, b) = map(str, input().split())
a = int(a)
b = list(b)
c = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])
num = a * c
print(num // 100)


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


(a, b) = input().split()
A = int(a)
B = int(b.replace('.', ''))
print(A * B // 100)


(M, N) = input().split()
A = int(M)
B = N.replace('.', '')
B = int(B)
C = A * B // 100
print(C)


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


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


s = input().split()
a = int(s[0])
b = int(s[1].replace('.', ''))
print(a * b // 100)


import math
import fractions
(a, b) = list(map(str, input().split()))
(a, b) = (int(a), fractions.Fraction(b))
print(math.floor(a * b))


(a, b) = map(str, input().split())
a = int(a)
b = int(b[0] + b[2:])
print(int(a * b // 100))


import math, string, itertools, fractions, heapq, collections, re, array, bisect, sys, random, time, copy, bisect
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()
from decimal import Decimal
(a, b) = map(Decimal, input().split())
print(int(a * b))


from fractions import Decimal, Fraction
(a, b) = input().split()
a = Fraction(a)
x = Decimal(b).as_integer_ratio()
b = Fraction(x[0], x[1])
print(int(a * b))


import math
import decimal

def i_input():
	return int(input())

def i_map():
	return map(int, input().split())

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

def i_row(N):
	return [int(input()) for _ in range(N)]

def i_row_list(N):
	return [list(map(int, input().split())) for _ in range(N)]
(a, b) = map(decimal.Decimal, input().split())
print(int(a * b))


(A, B) = input().split()
x = int(A)
y = round(float(B) * 100)
print(x * y // 100)


(m, k) = input().split(' ')
m = int(m)
k = float(k)
k = int(k * 100 + 0.5)
print(m * k // 100)


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


(m, n) = input().split()
print(int(m) * int(n[0] + n[2:]) // 100)


(A, B) = map(float, input().split())
A = int(A)
B = int(B * 100 + 0.999999)
print(A * B // 100)


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


(a, b) = input().split()
a = int(a)
(b1, b2) = b.split('.')
b3 = int(b1) * 100 + int(b2)
print(a * b3 // 100)


(A, B) = list(map(str, input().split()))
ans = int(A) * int(B[0]) * 100
ans += int(A) * int(B[2]) * 10
ans += int(A) * int(B[3])
print(ans // 100)


from decimal import Decimal as D
(a, b) = map(D, input().split())
print(int(a * b))


(a, b) = input().split()
print(int(a) * int(b[:-3] + b[-2:]) // 100)


(a, b) = input().split()
a = int(a)
(b1, b2) = b.split('.')
ans = a * (int(b1) * 100 + int(b2)) // 100
print(ans)


(a, b) = input().split()
num = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])
print(num * int(a) // 100)


import sys
import math
from collections import defaultdict, deque, Counter
from copy import deepcopy
from bisect import bisect, bisect_right, bisect_left
from heapq import heapify, heappop, heappush
input = sys.stdin.readline

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

def F():
	return float(input().rstrip())

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

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

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

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

def TI():
	return tuple(map(int, input().split()))

def LF():
	return list(map(float, input().split()))

def Init(H, W, num):
	return [[num for i in range(W)] for j in range(H)]

def main():
	(A, B) = input().rstrip().split()
	A = int(A)
	B = int(B.replace('.', ''))
	print(A * B // 100)

def __starting_point():
	main()
__starting_point()


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


(A, B) = map(float, input().split(' '))
A = int(A)
B = int(B * 1000)
print(A * B // 1000)


def ri():
	return int(input())

def rii():
	return [str(v) for v in input().split()]
(A, B) = rii()
A = int(A)
(B, F) = [int(v) for v in B.split('.')]
B = 100 * B + F
print(A * B // 100)


(a, b) = map(lambda x: int(x.replace('.', '')), input().split())
print(a * b // 100)


x = input().split()
a = int(x[0])
b = round(float(x[1]) * 100)
print(int(a * b // 100))


(a, b) = input().split()
(c, d) = b.split('.')
e = int(c) * 100 + int(d)
f = int(a) * e
print(f // 100)


(A, B) = list(input().split())
A = int(A)
b = B.replace('.', '')
print(A * int(b) // 100)


a = input().split()
a1 = int(a[0])
a2 = a[1]
a3 = a2[0] + a2[2:]
a3 = int(a3)
print(a1 * a3 // 100)


from decimal import *
import math
(a, b) = list(map(Decimal, input().split()))
print(math.floor(a * b))


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


(A, B) = input().split()
A = int(A)
B = B[0] + B[2:]
if A * int(B) >= 100:
	print(str(A * int(B))[:-2])
else:
	print(0)


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


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


(A, B) = input().split()
A = int(A)
B = int(B[:len(B) - 3] + B[len(B) - 2:])
print(int(A * B // 100))


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


(A, B) = input().split()
A = int(A)
(B1, B2) = B.split('.')
B = int(B1) * 10 ** len(B2) + int(B2)
print(A * B // 10 ** len(B2))


import math
l = input().split(' ')
a = int(l[0])
b = l[1].split('.')
c = int(b[0])
d = int(b[1])
e = a * (c * 100 + d) // 100
print(e)


(n, m) = input().split()
n = int(n)
m = float(m)
print(n * round(m * 100) // 100)


from fractions import gcd
from itertools import combinations, permutations, accumulate, product
from collections import deque, defaultdict, Counter
import decimal
import re
import math
import bisect
import heapq
import sys
sys.setrecursionlimit(10000000)
mod = 10 ** 9 + 7
from sys import stdin
readline = stdin.readline

def readInts():
	return list(map(int, readline().split()))

def readTuples():
	return tuple(map(int, readline().split()))

def I():
	return int(readline())
(a, b) = list(map(decimal.Decimal, input().split()))
print(int(a * b))


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


from decimal import Decimal, ROUND_DOWN
(a, b) = map(lambda x: Decimal(x), input().split())
print(Decimal(a * b).quantize(Decimal('1.'), rounding=ROUND_DOWN))


(a, b) = input().split()
aa = int(a)
bb = int(b[:-3] + b[-2:])
print(aa * bb // 100)


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


(a, b) = map(str, input().split())
(a, b) = (int(a), int(b.split('.')[0]) * 100 + int(b.split('.')[1]))
print(a * b // 100)


from decimal import Decimal
from math import floor

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

def __starting_point():
	main()
__starting_point()


(a, b) = map(int, input().replace('.', '').split())
t = a * b // 100
t = int(t)
print(t)


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


(A, B) = input().split()
A = int(A)
(i, d) = list(map(int, B.split('.')))
B_m = i * 100 + d
ans = A * B_m // 100
print(ans)


(x, y) = input().split()
x = int(x)
z = round(float(y) * 100)
print(x * z // 100)


(a_, b_) = input().split()
a = int(a_)
b = int(b_.replace('.', ''), 10)
print(a * b // 100)


def main(A, B):
	B = round(100 * B)
	ans = A * B
	return int(ans // 100)

def __starting_point():
	(A, B) = input().split()
	A = int(A)
	B = float(B)
	ans = main(A, B)
	print(ans)
__starting_point()


(A, B) = map(float, input().split())
A = int(A)
B = int(B * 100 + 0.1)
print(A * B // 100)


(A, B) = map(str, input().split())
A = int(A)
(C, D) = map(int, B.split('.'))
B1 = C * 100 + D
print(int(A * B1 // 100))


(a, b) = input().split()
a = int(a)
b = int(b[0]) * 100 + int(b[2]) * 10 + int(b[3])
s = a * b
print(s // 100)


import re
(a, b, c) = map(int, re.split('[ .]', input()))
print(a * (b * 100 + c) // 100)


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


(A, B) = input().split()
A = int(A)
C = ''
for i in range(len(B)):
	if i != 1:
		C += B[i]
C = int(C)
multiply = str(A * C)
if A * C < 100:
	print(0)
	return
ans = ''
for i in range(len(multiply) - 2):
	ans += multiply[i]
print(int(ans))


line = input().split()
a = int(line[0])
b = round(float(line[1]) * 100)
print(a * b // 100)


(A, B) = map(float, input().split())
A = int(A)
B = int(B * 100 + 0.9)
print(A * B // 100)


(a, b) = map(float, input().split())
print(int(a) * round(b * 10 ** 2) // 10 ** 2)


(a, b) = input().split()
a = int(a)
b = 100 * float(b) + 0.01
print(a * int(b) // 100)


import decimal
(a, b) = input().split()
a = int(a)
b = decimal.Decimal(b)
c = b * 100
x = a * int(c)
print(x // 100)


import decimal
(a, b) = input().split()
x = decimal.Decimal(a)
y = decimal.Decimal(b)
ans = int(x * y)
print(ans)