結果

問題 No.746 7の倍数
ユーザー souhei gunjisouhei gunji
提出日時 2018-12-09 17:09:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 233 bytes
コンパイル時間 951 ms
コンパイル使用メモリ 10,712 KB
実行使用メモリ 14,844 KB
最終ジャッジ日時 2023-10-14 14:25:58
合計ジャッジ時間 21,617 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
9,540 KB
testcase_01 AC 25 ms
9,896 KB
testcase_02 AC 30 ms
10,116 KB
testcase_03 TLE -
testcase_04 AC 117 ms
10,124 KB
testcase_05 AC 334 ms
10,260 KB
testcase_06 AC 693 ms
14,420 KB
testcase_07 AC 523 ms
14,484 KB
testcase_08 AC 750 ms
14,468 KB
testcase_09 AC 523 ms
14,744 KB
testcase_10 AC 310 ms
10,152 KB
testcase_11 AC 1,388 ms
14,500 KB
testcase_12 TLE -
testcase_13 AC 1,011 ms
14,844 KB
testcase_14 AC 1,287 ms
14,536 KB
testcase_15 AC 1,117 ms
14,764 KB
testcase_16 AC 1,218 ms
14,804 KB
testcase_17 AC 1,107 ms
14,512 KB
testcase_18 AC 1,266 ms
14,580 KB
testcase_19 AC 1,079 ms
14,572 KB
testcase_20 AC 518 ms
14,432 KB
testcase_21 AC 515 ms
10,188 KB
testcase_22 AC 1,627 ms
14,512 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

def no746(a):

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

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