結果

問題 No.746 7の倍数
ユーザー 夕叢霧香(ゆうむらきりか)夕叢霧香(ゆうむらきりか)
提出日時 2018-10-19 21:31:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 76,696 KB
最終ジャッジ日時 2023-08-12 00:12:38
合計ジャッジ時間 3,357 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,428 KB
testcase_01 AC 70 ms
71,152 KB
testcase_02 AC 71 ms
71,032 KB
testcase_03 AC 80 ms
76,476 KB
testcase_04 AC 75 ms
76,472 KB
testcase_05 AC 76 ms
76,528 KB
testcase_06 AC 78 ms
76,548 KB
testcase_07 AC 76 ms
76,648 KB
testcase_08 AC 77 ms
76,252 KB
testcase_09 AC 75 ms
76,620 KB
testcase_10 AC 75 ms
76,644 KB
testcase_11 AC 78 ms
76,552 KB
testcase_12 AC 77 ms
76,648 KB
testcase_13 AC 76 ms
76,352 KB
testcase_14 AC 82 ms
76,424 KB
testcase_15 AC 79 ms
76,452 KB
testcase_16 AC 78 ms
76,640 KB
testcase_17 AC 78 ms
76,560 KB
testcase_18 AC 76 ms
76,696 KB
testcase_19 AC 78 ms
76,252 KB
testcase_20 AC 77 ms
76,376 KB
testcase_21 AC 75 ms
76,520 KB
testcase_22 AC 79 ms
76,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
n=int(input())
if n==0:
    print(0)
else:
    s='142857'
    sys.stdout.write('0.')
    for i in range(n):
        sys.stdout.write(s[i%6])
    print('')
0