結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,756 KB
testcase_01 WA -
testcase_02 AC 27 ms
9,676 KB
testcase_03 AC 27 ms
9,704 KB
testcase_04 AC 27 ms
9,684 KB
testcase_05 AC 27 ms
9,764 KB
testcase_06 AC 28 ms
9,664 KB
testcase_07 AC 27 ms
9,680 KB
testcase_08 AC 27 ms
9,812 KB
testcase_09 AC 28 ms
9,648 KB
testcase_10 AC 28 ms
9,688 KB
testcase_11 AC 27 ms
9,804 KB
testcase_12 WA -
testcase_13 AC 27 ms
9,676 KB
testcase_14 AC 26 ms
9,784 KB
testcase_15 AC 27 ms
9,756 KB
testcase_16 AC 27 ms
9,644 KB
testcase_17 AC 27 ms
9,640 KB
testcase_18 AC 26 ms
9,760 KB
testcase_19 AC 27 ms
9,644 KB
testcase_20 AC 26 ms
9,672 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 27 ms
9,704 KB
権限があれば一括ダウンロードができます

ソースコード

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