結果

問題 No.746 7の倍数
ユーザー alexara1123alexara1123
提出日時 2019-09-21 12:24:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 2,023 ms
コンパイル使用メモリ 81,644 KB
実行使用メモリ 76,512 KB
最終ジャッジ日時 2023-10-17 18:55:28
合計ジャッジ時間 3,902 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,480 KB
testcase_01 AC 37 ms
53,480 KB
testcase_02 AC 36 ms
53,480 KB
testcase_03 AC 127 ms
76,508 KB
testcase_04 AC 37 ms
53,480 KB
testcase_05 AC 41 ms
67,408 KB
testcase_06 AC 63 ms
74,636 KB
testcase_07 AC 54 ms
74,544 KB
testcase_08 AC 63 ms
74,672 KB
testcase_09 AC 53 ms
74,544 KB
testcase_10 AC 40 ms
65,360 KB
testcase_11 AC 90 ms
75,228 KB
testcase_12 AC 127 ms
76,512 KB
testcase_13 AC 73 ms
74,864 KB
testcase_14 AC 95 ms
75,096 KB
testcase_15 AC 87 ms
74,976 KB
testcase_16 AC 95 ms
75,032 KB
testcase_17 AC 91 ms
74,976 KB
testcase_18 AC 94 ms
75,096 KB
testcase_19 AC 85 ms
74,920 KB
testcase_20 AC 54 ms
74,544 KB
testcase_21 AC 47 ms
74,532 KB
testcase_22 AC 115 ms
75,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n = int(input())
    if n == 0:
        print(0)
        exit()
    ans = "0."
    for i in range(n // 6):
        ans += "142857"
    ans += "142857"[:n % 6]
    print(ans)


if __name__ == '__main__':
    main()
0