Created
July 13, 2021 10:25
-
-
Save uchidama/28480b06e2ee875ac57606727391b129 to your computer and use it in GitHub Desktop.
AtCoder Beginner Contest 169 [ C - Multiplication 3 ] https://atcoder.jp/contests/abc169/tasks/abc169_c
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
[問題] | |
https://atcoder.jp/contests/abc169/tasks/abc169_c | |
''' | |
import sys | |
sys.setrecursionlimit(10 ** 6) # 再帰上限の引き上げ | |
input = sys.stdin.readline | |
INF = 2 ** 63 - 1 | |
A, B = map(str, input().split()) | |
A = int(A) | |
# Bは小数点を置換して100倍する(小数点以下2桁はいっているので | |
B = B.replace(".", "") | |
B = int(B) | |
# floatにして100倍 -> int だと微妙に精度たりないっぽくてWA x 1 | |
#B = int(float(B)*100.0) | |
# //100で小数点以下切り捨てて計算 | |
print((A * B) // 100) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment