結果

問題 No.746 7の倍数
ユーザー 夕叢霧香(ゆうむらきりか)夕叢霧香(ゆうむらきりか)
提出日時 2018-10-19 21:31:00
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 174 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 68,864 KB
最終ジャッジ日時 2024-04-29 15:24:43
合計ジャッジ時間 2,208 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,712 KB
testcase_01 AC 47 ms
51,584 KB
testcase_02 AC 44 ms
51,584 KB
testcase_03 AC 58 ms
68,864 KB
testcase_04 AC 49 ms
59,008 KB
testcase_05 AC 51 ms
59,648 KB
testcase_06 AC 53 ms
62,848 KB
testcase_07 AC 53 ms
61,824 KB
testcase_08 AC 53 ms
62,848 KB
testcase_09 AC 51 ms
61,696 KB
testcase_10 AC 49 ms
59,648 KB
testcase_11 AC 56 ms
65,920 KB
testcase_12 AC 58 ms
68,608 KB
testcase_13 AC 52 ms
64,640 KB
testcase_14 AC 52 ms
65,792 KB
testcase_15 AC 51 ms
65,152 KB
testcase_16 AC 52 ms
65,152 KB
testcase_17 AC 51 ms
65,152 KB
testcase_18 AC 54 ms
65,152 KB
testcase_19 AC 51 ms
64,384 KB
testcase_20 AC 50 ms
61,824 KB
testcase_21 AC 48 ms
60,800 KB
testcase_22 AC 55 ms
66,944 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