結果

問題 No.903 太郎の確率
ユーザー hayashihayashi
提出日時 2019-10-29 14:33:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 62 ms / 2,000 ms
コード長 314 bytes
コンパイル時間 4,019 ms
コンパイル使用メモリ 100,944 KB
実行使用メモリ 24,668 KB
最終ジャッジ日時 2023-10-12 23:21:30
合計ジャッジ時間 3,190 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
22,696 KB
testcase_01 AC 62 ms
24,668 KB
testcase_02 AC 61 ms
22,568 KB
testcase_03 AC 62 ms
22,744 KB
testcase_04 AC 61 ms
22,588 KB
testcase_05 AC 61 ms
22,616 KB
testcase_06 AC 62 ms
24,668 KB
testcase_07 AC 61 ms
20,636 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 static System.Console;
namespace ConsoleApp
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(ReadLine());
            string s = ((float)1 / N).ToString("F6");
            WriteLine(s);
        }
    }
}
0