結果

問題 No.746 7の倍数
ユーザー souhei gunjisouhei gunji
提出日時 2018-12-09 18:48:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 241 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 10,116 KB
最終ジャッジ日時 2023-10-14 14:27:26
合計ジャッジ時間 15,667 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
8,996 KB
testcase_01 AC 23 ms
9,304 KB
testcase_02 AC 22 ms
9,188 KB
testcase_03 TLE -
testcase_04 AC 34 ms
9,268 KB
testcase_05 AC 77 ms
9,388 KB
testcase_06 AC 395 ms
9,800 KB
testcase_07 AC 225 ms
9,672 KB
testcase_08 AC 453 ms
9,856 KB
testcase_09 AC 225 ms
9,868 KB
testcase_10 AC 71 ms
9,292 KB
testcase_11 AC 1,086 ms
10,116 KB
testcase_12 TLE -
testcase_13 AC 711 ms
9,984 KB
testcase_14 AC 985 ms
10,080 KB
testcase_15 AC 829 ms
9,908 KB
testcase_16 AC 922 ms
10,116 KB
testcase_17 AC 816 ms
9,988 KB
testcase_18 AC 966 ms
9,936 KB
testcase_19 AC 786 ms
10,040 KB
testcase_20 AC 219 ms
9,936 KB
testcase_21 AC 127 ms
9,256 KB
testcase_22 AC 1,327 ms
10,072 KB
権限があれば一括ダウンロードができます

ソースコード

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