結果

問題 No.746 7の倍数
ユーザー 💕💖💞💕💖💞
提出日時 2018-10-21 18:20:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 230 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 162 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 9,568 KB
最終ジャッジ日時 2023-08-12 05:44:49
合計ジャッジ時間 2,995 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
9,248 KB
testcase_01 AC 27 ms
9,188 KB
testcase_02 AC 26 ms
9,196 KB
testcase_03 AC 230 ms
9,380 KB
testcase_04 AC 26 ms
9,368 KB
testcase_05 AC 30 ms
9,268 KB
testcase_06 AC 58 ms
9,416 KB
testcase_07 AC 43 ms
9,260 KB
testcase_08 AC 60 ms
9,292 KB
testcase_09 AC 43 ms
9,384 KB
testcase_10 AC 30 ms
9,308 KB
testcase_11 AC 111 ms
9,568 KB
testcase_12 AC 224 ms
9,548 KB
testcase_13 AC 81 ms
9,424 KB
testcase_14 AC 99 ms
9,340 KB
testcase_15 AC 91 ms
9,448 KB
testcase_16 AC 95 ms
9,356 KB
testcase_17 AC 88 ms
9,340 KB
testcase_18 AC 102 ms
9,476 KB
testcase_19 AC 89 ms
9,400 KB
testcase_20 AC 43 ms
9,268 KB
testcase_21 AC 33 ms
9,392 KB
testcase_22 AC 134 ms
9,476 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import itertools
import re
N = int(input())

build = '0.'

for index, ch in enumerate(itertools.cycle(list('142857'))):
  if index >= N:
    break
  build += ch

build = re.sub(r'\.$', '', build)
print(build)
0