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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a, b = input().strip().split()
a, b = [int(a), float(b)]
b = b*100 + 0.000000001

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

Submission status: Accepted

Solution code:
from decimal import *

numa, numb = input().strip().split()
print(int(Decimal(numa)*Decimal(numb)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
itl = lambda: list(map(float, input().strip().split()))


def solve():
    a, b = input().strip().split()
    a = int(a)
    b = round(float(b) * 100)
    return a * b // 100


if __name__ == '__main__':
    print(solve())

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
numa, numb = input().strip().split()
numb = numb[:1]+numb[2:]
numa, numb = [int(numa),int(numb)]
ans = numa * numb
ans = str(ans)
if(len(ans)>2):
    print(ans[:-2])
else:
    print(0)

Submission status: Accepted

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

print(int(A*B))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
 
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
 
A, B = read().split()
 
A = int(A)
B = int(float(B) * 100 + .5)
 
A *= B
print(A // 100)

Submission status: Accepted

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

a = int(a)
b_p, b_s = map(int, b.split("."))

ans = a * b_p + a * b_s // 100

print(ans)

Submission status: Accepted

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

import sys
from decimal import Decimal

def main():
    a,b=input().split()
    a = Decimal(a)
    b = Decimal(b)
    ans = a * b
    ans = str(ans)
    idx = ans.index(".")
    print(ans[:idx])

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import decimal
lis = list(input().split(" "))
A = decimal.Decimal(lis[0])
B = decimal.Decimal(lis[1])

print(str(int(A * B)))

Submission status: Accepted

Solution code:
##C
A,B = map(str,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//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:
from decimal import Decimal
import math

A, B = input().split()

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

print(math.floor(product))

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()
B = int(str(b).replace(".",""))
A = int(a)
print(A*B//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
[A,B] = input().rstrip().split(' ')
[p,q] = B.split(".")
a = int(A)
b = int(p)*100+int(q)
print(a*b//100)

Submission status: Accepted

Solution code:
from decimal import Decimal
from math import floor

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

print(floor(a*b))

Submission status: Accepted

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

A = int(A)
B = int(float(B)*100 + 0.1)
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:
from decimal import *

ia,ib = input().split()
a = Decimal(ia)
b = Decimal(ib)
print(int((a*(b*100))//100))

Submission status: Accepted

Solution code:
# C - Multiplication 3

a, b = input().split()
a = int(a)
assert b[-3] == '.'
b = int(b[:-3] + b[-2:])

print(a * b // 100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
AB = list(input().split())
A = int(AB[0])
B = int(float(AB[1]) * 100 + 0.1)
print(A * B // 100)

Submission status: Accepted

Solution code:
AB = list(input().split())

A = int(AB[0])
B = int(AB[1][:1] + AB[1][2:])
print(A * B // 100)

Submission status: Accepted

Solution code:
AB = list(input().split())
A = int(AB[0])
B = int(float(AB[1]) * 100 + 0.5)
print(A * B // 100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
from decimal import Decimal

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import *

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

ans = Decimal(str(A)) * Decimal(str(B))
ans = str(ans)
i = ans.find('.')
ans = ans[:i]


print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
As,Bs=input().split()
A=int(As)
Bi,Bf=map(int,Bs.split("."))

print(A*Bi+A*Bf//100)

Submission status: Accepted

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

a = int(a)
b = b.replace(".", "")
b = int(b)
print(int(a*b)//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()
print(int(A) * round(float(B) * 100) // 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])
c = a*b
print(c//100)

Submission status: Accepted

Solution code:
# @oj: atcoder
# @id: hitwanyang
# @email: 296866643@qq.com
# @date: 2020-06-05 17:33
# @url:https://atcoder.jp/contests/abc169/tasks/abc169_c
import sys,os
from io import BytesIO, IOBase
import collections,itertools,bisect,heapq,math,string
from decimal import *
# region fastio

BUFSIZE = 8192

BUFSIZE = 8192

class FastIO(IOBase):
    newlines = 0

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

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

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

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


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


sys.stdin, sys.stdout = IOWrapper(sys.stdin), IOWrapper(sys.stdout)
input = lambda: sys.stdin.readline().rstrip("\r\n")
# ------------------------------
def main():
    ab=list(map(str,input().split()))
    a,b=int(ab[0]),int(str(ab[1]).replace(".",""))
    print (a*b//100)
if __name__ == "__main__":
    main()

Submission status: Accepted

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

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()
ans = (int(A) * (int(B[0])*100 + int(B[2])*10 + int(B[3]))) // 100
print(int(ans))

Submission status: Accepted

Solution code:
import math
x, y = list(map(float, input().split()))

x = int(x)
y = int(y * 100 + 0.5)
 
print(x * y // 100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal

a, b = map(Decimal, input().split())
ret = (int)(a * b)
print("{}".format(ret))

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()
a=int(a)
b=int(b.replace('.',''))*100
print(a*b//10000)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def i():
	return int(input())
def i2():
	return map(str,input().split())
def s():
	return str(input())
def l():
	return list(input())
def intl():
	return list(int(k) for k in input().split())

from decimal import Decimal
a,b = i2()
c = Decimal(a)
d = Decimal(b)
print(int(c*d))

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(".",""))*100
print(A*B//10000)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import decimal

vs = input().split()

a = int(vs[0])
b = decimal.Decimal(vs[1])

r = str(a * b).split('.')[0]
print(r)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
AB = list(input().split())
A = int(AB[0])
B = int(float(AB[1]) * 100 + 0.5)
A *= B
print(A // 100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
  ## IMPORT MODULE
  #import sys
  from decimal import Decimal

  #sys.setrecursionlimit(100000)
  #input=lambda :sys.stdin.readline().rstrip()

  #f_inf=float("inf")
  #MOD=10**9+7
  
  if 'get_ipython' in globals(): 
    ## SAMPLE INPUT
    a, b = 198, 1.10

  else:
    ##INPUT 
    #n = input()
    a, b = map(str, input().split())

  ## SUBMITION CODES HERE
  print(int(int(a)*Decimal(b)))
    
main()

Submission status: Accepted

Solution code:
from decimal import *

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

Submission status: Accepted

Solution code:
import numpy as np
import scipy as sp
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())
z=a*b
print(int(z))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from math import floor

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

Submission status: Accepted

Solution code:


def readinput():
    #a,b=list(map(float,input().split()))
    a,b=input().split()
    a=int(a)
    b=float(b)
    return a,b

def main(a,b):
    #ans=int(a*b*10)//10
    b=int(b*100+0.5)
    ans=a*b//100
    return ans

if __name__=='__main__':
    a,b=readinput()
    ans=main(a,b)
    print(ans)

Submission status: Accepted

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

import decimal
A = decimal.Decimal(A)
B = decimal.Decimal(B)
m = A * B
print(int(m))

Submission status: Accepted

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

import decimal
A = decimal.Decimal(A)
B = decimal.Decimal(B)
m = A * B
print(m//1)

Submission status: Accepted

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

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

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

# ans = A * B2 // 100
# print(int(ans))

Submission status: Accepted

Solution code:
import math

a,b=map(str,input().split())
c=int(a)
e=b.replace('.','')
d=int(e[0])*100+int(e[1])*10+int(e[2])
print(c*d//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().strip().split()
a, b = [int(a), float(b)]
ans = int(a * round(b * 100) // 100)
# ans = int(a * b)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B = input().split()
A = int(A)
B_int, B_float = map(int, B.split("."))

ans = A * (B_int * 100 + B_float) // 100
print(ans)

Submission status: Accepted

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


def solve(A: int, B: float):
    print(int(A*B))
    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 = Decimal(next(tokens))  # type: Decimal
    solve(A, B)

if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
A, B = input().split()
BA, BB = B.split(".")
#print(A, BA, BB)
print((int(A)*(int(BA)*100+int(BB))//100))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import Decimal
from math import floor

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#import bisect,collections,copy,heapq,itertools,math,numpy,string
#from operator import itemgetter
import sys
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())
A,B = LS()
for i,c in enumerate(B):
  if c == '.':
    break
res = str(int(A)*int(B[0:i]+B[i+1:]))
pos = len(res)-(len(B)-i-1)
if pos <= 0:
  print("0")
else:
	print(res[0:pos])

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# ABC169c


def main():
    import sys
    import math
    from decimal import Decimal
    input = sys.stdin.readline
    sys.setrecursionlimit(10**6)
    # 再帰関数を使わない限りPypyで出すこと

    def dump(*args):
        sys.stderr.write(str(args))

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
from decimal import Decimal

C, D = map(Decimal, input().split())
print(int(C*D))

Submission status: Accepted

Solution code:
from decimal import Decimal

S, T = input().split()
S = Decimal(S)
T = Decimal(T)

print(int(S*T))

Submission status: Accepted

Solution code:
Z = input().split()
A = int(Z[0])
B = Z[1].split('.')
B = int(B[0] + B[1])
#print(A*B)
if len(str(A*B)) <= 2:
  a = 0
else:
  a = str(A*B)[:-2]
  a = int(a)
print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from decimal import *
a,b=map(Decimal,input().split())
res=a*b
res=res.quantize(exp=Decimal('1.'),rounding=ROUND_DOWN)
print(res)

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

a, b = input().split()
A, B = [int(a), int(b.replace('.', ''))]

print(A * B // 100)

Submission status: Accepted

Solution code:
from decimal import Decimal

C, D = map(Decimal, input().split())
print(int(C*D))

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
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 math import floor
from decimal import Decimal

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

ans = int(A) * Decimal(B)

print(floor(ans))

Submission status: Accepted

Solution code:
a,b=input().split()
a=int(a)
bb=[0,0]
c=0
for i in b:
    if(i=='.'):
        c=1
        continue
    bb[c]*=10
    bb[c]+=int(i)
res=a*bb[0] + (a*bb[1])//100
print(res)

Submission status: Accepted

Solution code:
def q_c():
    a = input().split()
    a_1 = int(a[0])
    if "." not in a[1]:
        a_2 = int(a[1]) * 100
    else:
        a_2 = int((a[1] + "00").replace(".","")[0:3])

    a = str(a_1 * a_2)
    if len(a) >= 3:
        print(a[0:-2])
    else:
        print(0)


if __name__ == '__main__':
    q_c()

Submission status: Accepted

Solution code:
import numpy as np
import scipy.sparse as sps
import scipy.misc as spm
import collections as col
import functools as func
import itertools as ite
import fractions as frac
import math as ma
import cmath as cma
import copy as cp
import sys
def sinput(): return sys.stdin.readline().strip()
def iinput(): return int(sinput())
def imap(): return map(int, sinput().split())
def fmap(): return map(float, sinput().split())
def iarr(n=0):
    if n: return [0 for _ in range(n)]
    else: return list(imap())
def farr(): return list(fmap())
def sarr(n=0):
    if n: return ["" for _ in range(n)]
    else: return sinput().split()
def barr(n): return [False for _ in range(n)]
sys.setrecursionlimit(10**7)
MOD = 10**9 + 7; EPS = sys.float_info.epsilon
PI = np.pi; EXP = np.e; INF = np.inf

a,b = farr()
a,b = int(a),int(b*100+ .5)
ans = (a*b) //100
print(ans)

Submission status: Accepted

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

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
import decimal


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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
import numpy as np
import scipy.sparse as sps
import scipy.misc as spm
import collections as col
import functools as func
import itertools as ite
import fractions as frac
import math as ma
import cmath as cma
import copy as cp
import sys
def sinput(): return sys.stdin.readline().strip()
def iinput(): return int(sinput())
def imap(): return map(int, sinput().split())
def fmap(): return map(float, sinput().split())
def iarr(n=0):
    if n: return [0 for _ in range(n)]
    else: return list(imap())
def farr(): return list(fmap())
def sarr(n=0):
    if n: return ["" for _ in range(n)]
    else: return sinput().split()
def barr(n): return [False for _ in range(n)]
sys.setrecursionlimit(10**7)
MOD = 10**9 + 7; EPS = sys.float_info.epsilon
PI = np.pi; EXP = np.e; INF = np.inf

import decimal as dec

a,b = sarr()
a,b = dec.Decimal(a), dec.Decimal(b)
ans = int(a*b)
print(ans)

Submission status: Accepted

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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

a,b=input().split()
a=int(a)
bb=""
for i in b:
    if i!=".":
        bb = bb+i
b=int(bb)
print(math.floor(a*b//100))

Submission status: Accepted

Solution code:
#from pprint import pprint
#from collections import deque
#from collections import defaultdict
#from collections import Counter
#from copy import deepcopy
#from itertools
#from bisect import bisect_right #二分探索用のモジュール bisect_right(a_list,value)

#import sys 
#sys.setrecursionlimit(N) #N回まで再起を許可する。

# = map(int,input().split())

# = list(map(int,input().split()))

# = [list(map(int,input().split())) for _ in range(XXXX)]



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(".",""))

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

Submission status: Accepted

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

c = a * round(b * 100) // 100

print(c)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

def main():
    a, b = input().split()
    a = int(a)
    if not '.' in b:
        b = int(b) * 100
    elif b[-2] == '.':
        b = int(b.replace('.','') + '0')
    else:
        b = int(b.replace('.',''))

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

if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

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


def solve(A: int, B: int):
    print(A * B // 100)
    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 = next(tokens)
    b = int(B.replace(".", ""))
    solve(A, b)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b=map(str, input().split())
A=int(a)
B=int(b.replace(".",""))

print(A*B//100)

Submission status: Accepted

Solution code:
import decimal

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

Submission status: Accepted

Solution code:
# ans

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

Submission status: Accepted

Solution code:
a,b=input().split()
a=int(a)
c=""
for i in range(len(b)):
    if not b[i]==".":
        c+=b[i]
b=int(c)
ans=int(a*b)
ans=int(ans//100)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import decimal

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

Submission status: Accepted

Solution code:
A, B = input().split()
A = int(A)
x,y = B.split('.')
B = 100*int(x)+int(y)

print(A*B//100)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    A, B = input().split()
    A = int(A)
    B1, B2 = map(int, B.split('.'))
    B = B1 * 100 + B2
    ans = A * B // 100
    print(ans)

if __name__ == '__main__':
    main()

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 = map(str, input().split())
a = int(a)
cm = 0
for i in range(len(b)):
    if b[i] == '.':
        cm = len(b[i+1:])
        b = b[:i] + b[i+1:]
        break

b = int(b)

c = str(a * b)
ans = c[:-cm]
if not ans:
    print(0)
else:
    print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

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:
from decimal import Decimal
A,B =input().strip().split()

#
a =Decimal(A)
b =Decimal(B)
ans =int(a*b)

print(ans)

Submission status: Accepted

Solution code:


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

Submission status: Accepted

Solution code:
import sys
import math
from collections import defaultdict
from bisect import bisect_left, bisect_right

sys.setrecursionlimit(10**7)
def input():
    return sys.stdin.readline()[:-1]

mod = 10**9 + 7

def I(): return int(input())
def LI(): return list(map(int, input().split()))
def LIR(row,col):
    if row <= 0:
        return [[] for _ in range(col)]
    elif col == 1:
        return [I() for _ in range(row)]
    else:
        read_all = [LI() for _ in range(row)]
        return map(list, zip(*read_all))

#################

from decimal import getcontext,Decimal
getcontext().prec = 28

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

Submission status: Accepted

Solution code:
A,B = [i for i in input().split()]
B = list(B)
B.pop(1)
A = int(A)
B = [int(i) for i in B]
print((100*A*B[0] + 10*A*B[1] + A*B[2])//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

if __name__ == "__main__":
    a,b = input().split()
    print(int(a) * round(float(b)*100)//100)

Submission status: Accepted

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

if __name__ == "__main__":
    a,b = input().split()
    ai = int(a)
    bf = round(float(b)*100)
    print(ai*bf//100)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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