結果

問題 No.1076 寿司打
ユーザー SalmonizeSalmonize
提出日時 2020-06-12 21:22:10
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 372 bytes
コンパイル時間 775 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 8,932 KB
最終ジャッジ日時 2023-09-06 09:36:52
合計ジャッジ時間 1,335 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
8,760 KB
testcase_01 AC 21 ms
8,752 KB
testcase_02 AC 21 ms
8,932 KB
testcase_03 AC 21 ms
8,832 KB
testcase_04 AC 20 ms
8,756 KB
testcase_05 AC 20 ms
8,932 KB
testcase_06 AC 21 ms
8,856 KB
testcase_07 AC 21 ms
8,872 KB
testcase_08 AC 20 ms
8,748 KB
testcase_09 AC 20 ms
8,828 KB
testcase_10 AC 21 ms
8,772 KB
testcase_11 AC 21 ms
8,696 KB
testcase_12 AC 20 ms
8,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from decimal import *

readline = sys.stdin.readline
readall = sys.stdin.read
ns = lambda: readline().rstrip()
ni = lambda: int(readline().rstrip())
nm = lambda: map(int, readline().split())
nl = lambda: list(map(int, readline().split()))
prn = lambda x: print(*x, sep='\n')

def solve():
    p = Decimal(input())
    print(1 / (1 - p) - 1)
    return

solve()
0