結果

問題 No.746 7の倍数
ユーザー souhei gunji
提出日時 2018-12-09 18:48:03
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 1,811 ms / 2,000 ms
コード長 241 bytes
コンパイル時間 315 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 11,904 KB
最終ジャッジ日時 2025-03-30 10:37:23
合計ジャッジ時間 14,488 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import decimal
decimal.getcontext().prec = 100000

def no746(a):

    b = decimal.Decimal(0)
    b = math.floor(a / 7)
    print(decimal.Decimal(b/a))

if __name__ == "__main__":
    a = decimal.Decimal(input())
    no746(10**a)
0