結果

問題 No.746 7の倍数
ユーザー tails1434tails1434
提出日時 2020-01-15 21:42:00
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 244 bytes
コンパイル時間 1,376 ms
コンパイル使用メモリ 86,892 KB
実行使用メモリ 96,016 KB
最終ジャッジ日時 2023-09-02 14:30:26
合計ジャッジ時間 4,726 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 229 ms
93,004 KB
testcase_01 TLE -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal,getcontext
getcontext().prec = 10 ** 5
def main():
    N = int(input())
    all_num = 10 ** N
    seven = all_num // 7
    ans = Decimal(seven) / Decimal(all_num)
    print(ans)

if __name__ == "__main__":
    main()
0