結果

問題 No.746 7の倍数
ユーザー iwkjoseciwkjosec
提出日時 2018-12-01 18:04:11
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 451 bytes
コンパイル時間 2,936 ms
コンパイル使用メモリ 102,292 KB
実行使用メモリ 26,596 KB
最終ジャッジ日時 2023-09-09 06:52:38
合計ジャッジ時間 6,064 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,604 KB
testcase_01 AC 59 ms
22,436 KB
testcase_02 AC 60 ms
24,532 KB
testcase_03 AC 60 ms
22,996 KB
testcase_04 AC 60 ms
22,488 KB
testcase_05 AC 59 ms
22,592 KB
testcase_06 AC 60 ms
22,608 KB
testcase_07 AC 60 ms
22,624 KB
testcase_08 AC 60 ms
22,656 KB
testcase_09 AC 60 ms
24,544 KB
testcase_10 AC 60 ms
24,580 KB
testcase_11 AC 60 ms
24,780 KB
testcase_12 AC 59 ms
22,808 KB
testcase_13 AC 60 ms
22,680 KB
testcase_14 AC 60 ms
22,748 KB
testcase_15 AC 61 ms
22,844 KB
testcase_16 AC 61 ms
22,744 KB
testcase_17 AC 60 ms
22,656 KB
testcase_18 AC 60 ms
24,768 KB
testcase_19 AC 60 ms
22,652 KB
testcase_20 AC 61 ms
26,596 KB
testcase_21 AC 59 ms
22,576 KB
testcase_22 AC 60 ms
20,800 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; i++)s.Append("142857");
        WriteLine($"0.{s.ToString().Substring(0,N)}");
    }
}

0