結果

問題 No.746 7の倍数
ユーザー iwkjoseciwkjosec
提出日時 2018-12-05 14:34:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 384 bytes
コンパイル時間 3,319 ms
コンパイル使用メモリ 98,608 KB
実行使用メモリ 22,808 KB
最終ジャッジ日時 2023-09-26 02:36:09
合計ジャッジ時間 6,557 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
22,736 KB
testcase_01 AC 55 ms
20,752 KB
testcase_02 AC 53 ms
20,792 KB
testcase_03 AC 226 ms
20,740 KB
testcase_04 AC 59 ms
20,692 KB
testcase_05 AC 76 ms
22,808 KB
testcase_06 AC 125 ms
22,800 KB
testcase_07 AC 105 ms
20,800 KB
testcase_08 AC 130 ms
20,748 KB
testcase_09 AC 103 ms
22,796 KB
testcase_10 AC 73 ms
20,804 KB
testcase_11 AC 180 ms
20,684 KB
testcase_12 AC 227 ms
22,748 KB
testcase_13 AC 152 ms
20,700 KB
testcase_14 AC 171 ms
22,784 KB
testcase_15 AC 159 ms
22,736 KB
testcase_16 AC 167 ms
20,744 KB
testcase_17 AC 159 ms
20,684 KB
testcase_18 AC 168 ms
20,636 KB
testcase_19 AC 155 ms
20,740 KB
testcase_20 AC 104 ms
20,752 KB
testcase_21 AC 86 ms
20,684 KB
testcase_22 AC 189 ms
20,680 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;
        }
        Write("0.");
        for (int i = 0; i < N; i++) Write("142857"[i % 6]);
        WriteLine();
    }
}
0