結果

問題 No.746 7の倍数
ユーザー clocklrclocklr
提出日時 2018-10-19 23:45:58
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 227 ms / 2,000 ms
コード長 445 bytes
コンパイル時間 3,993 ms
コンパイル使用メモリ 101,008 KB
実行使用メモリ 22,796 KB
最終ジャッジ日時 2023-08-12 02:38:34
合計ジャッジ時間 6,679 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,652 KB
testcase_01 AC 53 ms
18,728 KB
testcase_02 AC 54 ms
20,748 KB
testcase_03 AC 227 ms
20,664 KB
testcase_04 AC 59 ms
20,644 KB
testcase_05 AC 72 ms
20,664 KB
testcase_06 AC 123 ms
20,596 KB
testcase_07 AC 103 ms
20,672 KB
testcase_08 AC 130 ms
20,756 KB
testcase_09 AC 104 ms
22,796 KB
testcase_10 AC 71 ms
20,668 KB
testcase_11 AC 176 ms
20,828 KB
testcase_12 AC 226 ms
20,720 KB
testcase_13 AC 151 ms
18,792 KB
testcase_14 AC 171 ms
22,700 KB
testcase_15 AC 160 ms
20,724 KB
testcase_16 AC 168 ms
20,764 KB
testcase_17 AC 159 ms
20,656 KB
testcase_18 AC 170 ms
20,732 KB
testcase_19 AC 159 ms
20,592 KB
testcase_20 AC 101 ms
20,636 KB
testcase_21 AC 83 ms
20,732 KB
testcase_22 AC 190 ms
20,712 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 static System.Console;
using static System.Math;
using System.Linq;

public class Hello{
    public static void Main(){
        int a = int.Parse(ReadLine());
        if(a==0){
            WriteLine(0);
        }else{
            Write("0.");
            string b = "142857";
            for(int i=0;i<a;i++){
                int c = i%6;
                Write(b[c]);
            }
            WriteLine();
        }
    }
}
0