結果

問題 No.169 何分かかるの!?
ユーザー 💕💖💞
提出日時 2018-07-25 21:53:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 289 bytes
コンパイル時間 121 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 11,264 KB
最終ジャッジ日時 2024-06-27 04:05:29
合計ジャッジ時間 2,036 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 18 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
from decimal import *
import re
getcontext().prec = 700

m = Decimal(1 - float(input())/100)
n = Decimal(float(input()))
ma = re.search(r'\.(\d)', f'{n/m:0.100f}').group(1)
#print(n/m, ma)
if ma in ['6', '7', '8', '9']:
  print(math.floor(n/m)+1)
else:
  print(math.floor(n/m))
0