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 = input().split()
print(int(int(a)*Decimal(b)))

Submission status: Accepted

Solution code:
from math import floor 
from fractions import Fraction

A, B = input().split()
A = int(A)
B = Fraction(B)
print(floor(A*B))

Submission status: Accepted

Solution code:
A, B = list(input().split())
s = B.strip().split(".")
a = int(s[0]) * (10 ** 2)
if len(s) > 1:
    t = s[1] + "0" * (2 - len(s[1]))
    a += int(t)
a = int(a)
ans = a * int(A) // 100
print(ans)

Submission status: Accepted

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

A = int(A)
q = int(B[0]+B[2]+B[3])

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def big_one_multiply(A, b):
  carry = 0
  M = []
  for i in range(len(A)):
    x = int(A[-i-1]) * int(b) + carry
    M.insert(0, x % 10)
    carry = x // 10
  if carry > 0:
    M.insert(0, carry)
  return M

def big_big_plus(A, B):
  carry = 0
  S = []
  if len(A) > len(B):
    B = [0] * (len(A) - len(B)) + B
  elif len(A) < len(B):
    A = [0] * (len(B) - len(A)) + A
  for i in range(len(A)):
    x = int(A[-i-1]) + int(B[-i-1]) + carry
    S.insert(0, x % 10)
    carry = x // 10
  if carry > 0:
    S.insert(0, carry)
  return S
    

tmp = input().split(" ")
A = list(tmp[0])
B = list(filter(lambda n: n != ".", list(tmp[1])))

ans = [0]
for i in range(len(B)):
  ans = big_big_plus(ans, big_one_multiply(A, B[-i-1]) + [0] * i)

z = "".join([str(n) for n in ans[:-2]])
w = ""
flag = False
for i in range(len(z)):
  if z[i] != "0" or flag:
    w += z[i]
    flag = True
    
print(w) if w else print(0)

Submission status: Accepted

Solution code:
from math import floor
from decimal import Decimal
if __name__ == '__main__':

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

Submission status: Accepted

Solution code:
import math

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

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 *
A,B = map(Decimal,input().split())
print(int(A*B))

Submission status: Accepted

Solution code:
import math 
x, n = list(map(float, input().split()))
#print(x,n)
#print(n*x)
n = round(100*n)
print(int(x)*n//100)

Submission status: Accepted

Solution code:
ini = lambda : int(input())
inm = lambda : map(int,input().split())
inl = lambda : list(map(int,input().split()))
gcd = lambda x,y : gcd(y,x%y) if x%y else y

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!
import math

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

main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    ab = [_x for _x in input().split()]
    n = ab[1]
    bb = (int(n[0])*100 + int(n[2])*10 + int(n[3]))
    aa = int(ab[0])
    if aa == 0:
        print(0)
        return
    if bb == 0:
        print(0)
        return
    result = str(aa*bb)

    if len(result) <= 2:
        print(0)
    else:
        print(str(result)[:-2])


main()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
def main():
    a, b = input().split()

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
if '.' in b:
    i, f = b.split('.')
    b = int(i) * 100 + int(f)

else:
    b = int(b) * 100

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

Submission status: Accepted

Solution code:
import decimal
import math

A, B = input().split()
N = decimal.Decimal(A) * decimal.Decimal(B)

print(math.floor(N))

Submission status: Accepted

Solution code:
def main(istr, ostr):
  x, y = istr.readline().strip().split()
  a = int(x)
  b0, _, b1, b2 = y
  b0, b1, b2 = list(map(int, [b0, b1, b2]))

  c = a * (100 * b0 + 10 * b1 + b2)
  res = c // 100
  print(res, file=ostr)


if __name__ == "__main__":
  import sys

  main(sys.stdin, sys.stdout)

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:
A, B = input().split()
AA = int(A)
# BB = int(float(B)*100)
BB = int(B.replace('.', ''))
print(AA*BB//100)

Submission status: Accepted

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

print(int(ans))

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

A, B = input().split()

A = int(A)
if len(B) == 1:
    B = int(B[0] + '00')
elif len(B) == 3:
    B = int(B[0] + B[2] + '0')
else:
    B = int(B[0]+B[2]+B[3])

x = str(A*B)

print(x[:-2] if len(x) > 2 else 0)

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:
#decimalを使った別解
import decimal
deci = decimal.Decimal
a,b = input().split()
x,y = deci(a),deci(b)
ans = (x*y).quantize(deci('0'),rounding=decimal.ROUND_FLOOR)
print(ans)

Submission status: Accepted

Solution code:
a,b = input().split()
#浮動小数点には誤差が含まれているため文字列で扱って、bを100倍にして乗算してから100で割った商を求める。
#ex b=9.99 "{:.20f}".format(b)→'9.99000000000000021316'
p = int(a)
q = int(b[0]+b[2]+b[3])
print(p*q//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    n, m = input().split(' ')
    print(mul(n, m))


def mul(n: str, m: str) -> int:
    n = int(n)
    m = int(f'{m[:-3]}{m[-2:]}')

    return (n * m) // 100


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
from decimal import Decimal
def S(): return sys.stdin.readline().rstrip()
def M(): return map(Decimal,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
a, b = M()
ab = a*b
print(math.floor(ab))

Submission status: Accepted

Solution code:
a,b=input().split()
a=int(a)
b=int(b.replace('.',''))
#floatにすると誤差が出るから文字列の時点で整数化してからintにする
ans=a*b//100

print(ans)

Submission status: Accepted

Solution code:
import math
A, B = [i for i in input().split()]
A = int(A)
tmp = B.split('.')
B = 100 * int(tmp[0]) + int(tmp[1])
print((A*B)//100)

Submission status: Accepted

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

#整数演算にする

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

print(A*B//100)

Submission status: Accepted

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

a = int(a)

b = round(100*float(b))

ans = a*b

print(int(ans//100))

Submission status: Accepted

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

Submission status: Accepted

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

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

ans = a * b // 100

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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

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


print(int(a*b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A,B = input().split()
A = int(A)
ans = 0
cnt = 0
for s in B:
    if(s=='.'):
        continue
    else:
        s = int(s)
        ans += A * (10**(2-cnt)) * s
        cnt += 1

ans = ans//100
#print(type(ans))
print(ans)

Submission status: Accepted

Solution code:
def resolve():
    A, B = input().split()
    ans = int(A)*int(B[0])*100+int(A)*int(B[2:])
    print(str(ans)[:-2] if len(str(ans)) >= 3 else "0")
resolve()

Submission status: Accepted

Solution code:
a,b = input().split()
a = int(a)
b_integer = int(b[0])
b_decimal = int(b[-2]) * 10 + int(b[-1])
print(a * b_integer + a * b_decimal // 100)

Submission status: Accepted

Solution code:
N = list(input().split())
A = int(N[0])
b1,b2 = N[1].split('.')
B = int(b1+b2)
prd = list(str(A*B))
ans = 0
if len(prd) < 3:
    ans = 0
else:
    prd.pop()
    prd.pop()
    ans = int(''.join(prd))
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

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

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

print(a*b//100)

Submission status: Accepted

Solution code:
# Command line submission test using online-judge-tools 10.0.5
import decimal
import math
A, B = map(decimal.Decimal, input().split())
print(math.floor(A*B))

Submission status: Accepted

Solution code:
from decimal import Decimal

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

Submission status: Accepted

Solution code:
s=input()
sx,sy=map(str,s.split())
y1,y2=map(int,sy.split("."))

print(int(sx)*int(y1*100+y2)//100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=map(float, input().split())
A = int(a)
B = round(100*b)
C = A*B

print(int(C//100))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
_a,_b = input().split()
a = int(_a)
b = int(str(_b).replace(".",""))
print(a*b//100)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


def main():
    import sys
    
    input = sys.stdin.readline

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


if __name__ == '__main__':
    main()

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

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:
a, b = input().split()
a = int(a)
b = int(b.replace(".",""))

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

Submission status: Accepted

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

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

Submission status: Accepted

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


print(int(A) * int(float(B) * 100 + 0.5) // 100)

Submission status: Accepted

Solution code:
a, b = 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 = [s for s in input().split()]

A = int(A)
B = int(float(B) * 100 + .5)

C = A * B

ans = int(C // 100)

print(ans)

Submission status: Accepted

Solution code:
import math

A, B = input().split()
A = int(A)
B = float(B)
B = int(B * 100 + 1e-5)

res = int(math.floor((A * B) // 100))
print(res)

Submission status: Accepted

Solution code:
import math
import decimal

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

Submission status: Accepted

Solution code:
import decimal

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

Submission status: Accepted

Solution code:
A, B = map(float, input().split())
A = int(A)
B = round(B*100)
mul = A * B
answer = mul // 100
print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
a,b=map(float,input().split())
a=int(a)
b=round(b*100)
print((a*b)//100)

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)

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

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

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:
A,B = input().split()
A = int(A)
x = ""
for i in range(len(B)):
    if B[i]!=".":
        x += B[i]
B = int(x)
C = A*B
C = C//100
print(C)

Submission status: Accepted

Solution code:
A,B = map(str,input().split())
A = int(A)
B1 = int(B[0])
B2 = int(B[-2])
B3 = int(B[-1])

ans = A*(100*B1+10*B2+B3)//100
print(int(ans))

Submission status: Accepted

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


if __name__ == '__main__':
    main()

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:
import math
import sys
import bisect
readline = sys.stdin.readline


def main():
    a, b = map(float, readline().rstrip().split())
    a = int(a)
    b = round(b * 100)
    print((a * b) // 100)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

print(C//100)

Submission status: Accepted

Solution code:
from decimal import Decimal as dc
import math

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

Submission status: Accepted

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


def main():
  A, B = input().split()
  A = int(A)
  # B = int(100*float(B))
  B = int(B[0]+B[2:])

  # print((A*B)//100)
  if A*B < 100:
    print(0)
  else:
    print(str(A*B)[:-2])


if(__name__ == '__main__'):
  main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
A,B=input().split()
A=int(A)
B=int(B.replace('.',""))
ans=A*B
ans=ans//100

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

ans = a*b // 100

print(int(ans))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal

lst = [i for i in input().split()]
z = Decimal(lst[0]) * Decimal(lst[1])
print(int(z))

Submission status: Accepted

Solution code:
import decimal


def multply(a: str, b: str) -> int:
    return int(decimal.Decimal(a) * decimal.Decimal(b))

a, b =  input().split()
print(multply(a, 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:
def resolve():
    AB = input().split()
    A = int(AB[0])
    B = int(AB[1].replace('.', ''))
    ans = A * B // 100
    print(ans)

if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
import math
#A , B = map(float,input().split())
a , b = input().split()
a = int(a)
b = round(100*float(b))

#ans = int (A *(B*100)/100)  
print(a*b//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
aa, bb = input().split()
a = int(aa)
b0,b1 = bb.split(".")
b = int(b0 + b1)
print(a * b//100)

Submission status: Accepted

Solution code:
a,b=map(float,input().split())
a=int(a)
b=round(b*100)
k=int((a*b)//100)
print(k)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b=input().split()
a=int(a)
b1,b2=b.split(".")
b=int(b1+b2)
print(a*b//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

def main():

    A, B = input().split()

    A = int(A)
    B = float(B)

    ans = A * round(B * 100) // 100

    print(int(ans))


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

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

print(ans)

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 bisect,collections,copy,heapq,itertools,math,string,decimal
import numpy as np
import sys
sys.setrecursionlimit(10**7)

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


# N = I()
_A,_B = LS()
A = decimal.Decimal(_A)
B = decimal.Decimal(_B)

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

#AB = [LI() for _ in range(N)]
#A,B = zip(*AB)
#Ap = np.array(A)
#C = np.zeros(N + 1)

# if ans:
#     print('Yes')
# else:
#     print('No')

Submission status: Accepted

Solution code:

import decimal

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
# Multiplication 3

A, B = input().split()

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

prod100 = A * b

prod = prod100 // 100

print(int(prod))

Submission status: Accepted

Solution code:
def input_int():
    return map(int, input().split())

def one_int():
    return int(input())

def one_str():
    return input()

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

import math
from decimal import Decimal

A, B = input().split()

# A=int(A)
# B=float(B)

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

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:
a, b = input().split()
a = int(a)
b = int(b.replace(".", ""))
# print(a, b)
ans = a*b//100
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    a, b = input().split()
    a = int(a)
    b = round(float(b) * 100)
    print(int(a * b // 100))


if __name__ == "__main__":
    main()

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

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


print(math.floor(A*B))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]
dy8, dx8 = [0, -1, 0, 1, 1, -1, -1, 1], [1, 0, -1, 0, 1, 1, -1, -1]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


def sum_of_arithmetic_progression(s, d, n):
    return n * (2 * s + (n - 1) * d) // 2


def gcd(a, b):
    if b == 0:
        return a
    return gcd(b, a % b)


def lcm(a, b):
    g = gcd(a, b)
    return a / g * b


def solve():
    A, B = input().split()

    A = int(A)
    B = B.replace(".", "")
    B = int(B)
    print((A * B) // 100)


def main():
    solve()


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import math
A, B = map(str,input().split(" "))
B_ = int(B.split(".")[0])*100 + int(B.split(".")[1])

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
a, b = input().split()
a = int(a)
b1, b2 = map(int, b.split('.'))
b100 = b1*100 + b2
      
print(a*b100//100)

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
from sys import stdin
import sys

a, b = [x for x in stdin.readline().rstrip().split()]
a = int(a)
b = int(b.replace('.',''))

print(a * b  // 100)

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
A, B=input().split()
a=int(A)
R,E=B.split('.')
while len(E)<2:
    E=E+0
c=int(R+E)
p=str(a*c)
if len(p)<=2:
    print(0)
else:
    print(p[0:len(p)-2])

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:
import sys
import math
from decimal import *
A,B = map(Decimal,input().split())
print(math.floor(A*B))

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:
A,B=list(map(str,input().split()))
a=int(A)
b=int(B[:-3]+B[-2:])
print(a*b//100)

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

a,b=input().split()

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

Submission status: Accepted

Solution code:
# import sys
# input = sys.stdin.readline
import itertools
import collections
from decimal import Decimal


# 持っているビスケットを叩き、1枚増やす
# ビスケット A枚を 1円に交換する
# 1円をビスケット B枚に交換する
def main():
    a, b = input_list()
    print(int(a*b))


def bfs(H, W, black_cells, dist):
    d = 0
    while black_cells:
        h, w = black_cells.popleft()
        d = dist[h][w]
        for dy, dx in ((1, 0), (0, 1), (-1, 0), (0, -1)):
            new_h = h + dy
            new_w = w + dx
            if new_h < 0 or H <= new_h or new_w < 0 or W <= new_w:
                continue
            if dist[new_h][new_w] == -1:
                dist[new_h][new_w] = d + 1
                black_cells.append((new_h, new_w))
    return d


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


def input_list_str():
    return list(map(str, input().split()))


if __name__ == "__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

a = int(a)

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

# ans = (a * int(b * 100)) // 100
b = round(b * 100)
# print((b))
ans = (a * int(b)) // 100
# ans = (a * int(b * 100))
# ans = ans // 100

print(int(ans))
# print((999990000000001*999)//100)
# print(9.99 * 100)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

a,b=input().split()
b=list(b)
if a=="0" or b=="0":
    print(0)
else:
    b.remove('.')
    b=''.join(b)
    a=int(a)
    b=int(b)
    c=str(a*b)
    if a*b<100:
        print(0)
    else:
        c=list(c)
        del c[-1]
        del c[-1]
        c=''.join(c)
        print(c)

Submission status: Accepted

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

input = sys.stdin.readline
a,b = input().strip().split()
print(floor(Decimal(a)*Decimal(b)))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

a,b = input().strip().split()
a = int(a)
b = b.replace('.','')
ans = (a*int(b))//100
print(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:
a,b = map(str,input().split())
b = b[0] + b[2:]
a,b = int(a),int(b)
print(a*b//100)

Submission status: Accepted

Solution code:
a, b = input().split()  # まず文字列で受け取ります
p = int(a) # aはそのままint型にします
q = int(b[0] + b[2] + b[3])  # b[0] + b[2] + b[3]を整数に変換すれば、bの100倍を正確に得られます

print(p * q // 100)  # 掛けて100で整数の割り算をすれば終わりです

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:
from math import floor
from fractions import Fraction
a, b = input().split()
a = int(a)
b = Fraction(b)
print(floor(a * b))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import floor
A= input().split()
p = int(A[0])
q = round(float(A[1])*100)
t = p*q
t //= 100
print(t)

Submission status: Accepted

Solution code:
m,k=input().split(" ")
m=int(m)
k=float(k)
k=int(k*100+0.5)
print(m*k//100)