結果

問題 No.746 7の倍数
ユーザー 1_7201_720
提出日時 2019-08-18 17:59:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,016 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 230 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,288 KB
最終ジャッジ日時 2024-04-09 02:19:37
合計ジャッジ時間 8,712 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
11,136 KB
testcase_01 AC 31 ms
11,136 KB
testcase_02 AC 32 ms
11,136 KB
testcase_03 AC 1,016 ms
12,288 KB
testcase_04 AC 42 ms
11,264 KB
testcase_05 AC 74 ms
11,264 KB
testcase_06 AC 221 ms
12,160 KB
testcase_07 AC 143 ms
12,032 KB
testcase_08 AC 247 ms
12,032 KB
testcase_09 AC 142 ms
11,904 KB
testcase_10 AC 70 ms
11,392 KB
testcase_11 AC 532 ms
12,152 KB
testcase_12 AC 1,008 ms
12,288 KB
testcase_13 AC 364 ms
12,288 KB
testcase_14 AC 488 ms
12,156 KB
testcase_15 AC 416 ms
12,160 KB
testcase_16 AC 460 ms
12,160 KB
testcase_17 AC 412 ms
12,132 KB
testcase_18 AC 479 ms
12,156 KB
testcase_19 AC 399 ms
12,152 KB
testcase_20 AC 139 ms
11,904 KB
testcase_21 AC 105 ms
11,264 KB
testcase_22 AC 644 ms
12,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import Decimal,getcontext
getcontext().prec = 10 ** 5

n = int(input())
if n == 0:
  print(0)
  exit()

num = ""
for i in range(n):
  num += "142857"[i%6]

print(Decimal(num) / Decimal(10**n))
0