結果

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

ソースコード

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)', str(n/m)).group(1)
if ma in ['6', '7', '8', '9']:
  print(math.floor(n/m)+1)
else:
  print(math.floor(n/m))
0