結果

問題 No.746 7の倍数
ユーザー tails1434
提出日時 2020-01-15 21:42:00
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 244 bytes
コンパイル時間 148 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 88,520 KB
最終ジャッジ日時 2024-06-11 21:07:40
合計ジャッジ時間 3,880 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 TLE * 1 -- * 1
other -- * 20
権限があれば一括ダウンロードができます

ソースコード

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