結果

問題 No.746 7の倍数
ユーザー iwkjoseciwkjosec
提出日時 2018-12-05 14:08:08
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 507 bytes
コンパイル時間 2,415 ms
コンパイル使用メモリ 101,856 KB
実行使用メモリ 22,768 KB
最終ジャッジ日時 2023-09-25 21:29:39
合計ジャッジ時間 5,417 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,672 KB
testcase_01 AC 56 ms
20,620 KB
testcase_02 AC 56 ms
20,588 KB
testcase_03 AC 56 ms
20,936 KB
testcase_04 AC 56 ms
20,624 KB
testcase_05 AC 56 ms
22,696 KB
testcase_06 AC 56 ms
20,672 KB
testcase_07 AC 55 ms
20,616 KB
testcase_08 AC 56 ms
20,776 KB
testcase_09 AC 56 ms
20,664 KB
testcase_10 AC 56 ms
20,628 KB
testcase_11 AC 56 ms
22,768 KB
testcase_12 AC 56 ms
20,900 KB
testcase_13 AC 56 ms
20,752 KB
testcase_14 AC 56 ms
20,756 KB
testcase_15 AC 56 ms
20,764 KB
testcase_16 AC 56 ms
20,744 KB
testcase_17 AC 55 ms
20,684 KB
testcase_18 AC 57 ms
22,740 KB
testcase_19 AC 56 ms
20,612 KB
testcase_20 AC 56 ms
20,584 KB
testcase_21 AC 56 ms
20,612 KB
testcase_22 AC 57 ms
20,952 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using static System.Console;

class Program
{
    public static void Main()
    {
        var N = int.Parse(ReadLine());
        if (N == 0)
        {
            WriteLine(0);
            return;
        }

        var s = new System.Text.StringBuilder(100000);
        for (int i = 0; i < 100000/6; i++) s.Append("142857");
        s.Append("142857".Substring(0,100000%6));
        WriteLine($"0.{s.ToString().Substring(0, N)}");
    }
}
0