結果

問題 No.169 何分かかるの!?
ユーザー 💕💖💞💕💖💞
提出日時 2018-07-25 21:50:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 266 bytes
コンパイル時間 847 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 9,856 KB
最終ジャッジ日時 2023-09-09 10:53:50
合計ジャッジ時間 2,200 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,628 KB
testcase_01 WA -
testcase_02 RE -
testcase_03 AC 27 ms
9,632 KB
testcase_04 AC 28 ms
9,636 KB
testcase_05 AC 28 ms
9,628 KB
testcase_06 AC 27 ms
9,636 KB
testcase_07 AC 27 ms
9,660 KB
testcase_08 WA -
testcase_09 AC 27 ms
9,712 KB
testcase_10 AC 28 ms
9,836 KB
testcase_11 AC 27 ms
9,708 KB
testcase_12 WA -
testcase_13 AC 28 ms
9,756 KB
testcase_14 AC 27 ms
9,676 KB
testcase_15 RE -
testcase_16 AC 27 ms
9,644 KB
testcase_17 AC 27 ms
9,760 KB
testcase_18 AC 27 ms
9,708 KB
testcase_19 AC 28 ms
9,652 KB
testcase_20 AC 27 ms
9,624 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
権限があれば一括ダウンロードができます

ソースコード

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