結果

問題 No.746 7の倍数
ユーザー MIKI TakushiMIKI Takushi
提出日時 2018-12-30 23:52:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 989 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 196 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,408 KB
最終ジャッジ日時 2024-04-17 16:30:02
合計ジャッジ時間 8,784 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
11,008 KB
testcase_01 AC 34 ms
11,136 KB
testcase_02 AC 35 ms
11,264 KB
testcase_03 AC 989 ms
12,408 KB
testcase_04 AC 46 ms
11,136 KB
testcase_05 AC 76 ms
11,264 KB
testcase_06 AC 222 ms
12,032 KB
testcase_07 AC 143 ms
12,032 KB
testcase_08 AC 248 ms
12,152 KB
testcase_09 AC 143 ms
11,904 KB
testcase_10 AC 70 ms
11,264 KB
testcase_11 AC 537 ms
12,260 KB
testcase_12 AC 982 ms
12,160 KB
testcase_13 AC 364 ms
12,160 KB
testcase_14 AC 493 ms
12,256 KB
testcase_15 AC 419 ms
12,128 KB
testcase_16 AC 461 ms
12,148 KB
testcase_17 AC 415 ms
12,160 KB
testcase_18 AC 484 ms
12,136 KB
testcase_19 AC 401 ms
12,124 KB
testcase_20 AC 139 ms
11,900 KB
testcase_21 AC 107 ms
11,392 KB
testcase_22 AC 644 ms
12,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
from decimal import Decimal,getcontext
getcontext().prec = 10**5
n = int(input())
cnt = (10**n)//(7)
if cnt==0:
    print(0)
else:
    print(Decimal(cnt)/(Decimal(10)**Decimal(n)))
0