結果

問題 No.1076 寿司打
ユーザー uni_pythonuni_python
提出日時 2020-06-15 23:18:53
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 286 bytes
コンパイル時間 927 ms
コンパイル使用メモリ 87,012 KB
実行使用メモリ 71,632 KB
最終ジャッジ日時 2023-09-16 10:36:06
合計ジャッジ時間 2,436 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,416 KB
testcase_01 AC 76 ms
71,448 KB
testcase_02 AC 73 ms
71,340 KB
testcase_03 AC 74 ms
71,364 KB
testcase_04 AC 74 ms
71,412 KB
testcase_05 AC 73 ms
71,552 KB
testcase_06 AC 74 ms
71,552 KB
testcase_07 AC 74 ms
71,524 KB
testcase_08 AC 74 ms
71,276 KB
testcase_09 AC 73 ms
71,280 KB
testcase_10 AC 73 ms
71,392 KB
testcase_11 AC 77 ms
71,632 KB
testcase_12 AC 72 ms
71,552 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=sys.stdin.readline
def I(): return int(input())
def MI(): return map(int, input().split())
def LI(): return list(map(int, input().split()))
mod=10**9+7

def main():
    p=float(input())
    if p==0:
        print(0)
    else:
        print(1/(1-p)-1)


main()

        
0