結果

問題 No.903 太郎の確率
ユーザー CroweaCrowea
提出日時 2019-10-14 17:38:22
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 60 ms / 2,000 ms
コード長 1,061 bytes
コンパイル時間 930 ms
コンパイル使用メモリ 61,604 KB
実行使用メモリ 24,728 KB
最終ジャッジ日時 2023-08-25 19:37:04
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
20,644 KB
testcase_01 AC 60 ms
24,728 KB
testcase_02 AC 59 ms
22,604 KB
testcase_03 AC 59 ms
24,720 KB
testcase_04 AC 59 ms
22,712 KB
testcase_05 AC 59 ms
22,624 KB
testcase_06 AC 59 ms
22,704 KB
testcase_07 AC 59 ms
22,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoder
{
    public class IO
    {
        public static string ReadStr() => Console.ReadLine();
        public static string[] ReadStrArr() => ReadStr().Split(' ');

        public static int ReadInt() => int.Parse(ReadStr());
        public static int[] ReadIntArr() => Array.ConvertAll(Console.ReadLine().Split(' '), int.Parse);

        public static double ReadDouble() => double.Parse(ReadStr());
        public static double[] ReadDoubleArr() => Array.ConvertAll(Console.ReadLine().Split(' '), double.Parse);

        public static long ReadLong() => long.Parse(ReadStr());
        public static long[] ReadLongArr() => Array.ConvertAll(Console.ReadLine().Split(' '), long.Parse);

        public static void Cout<T>(T value) => Console.WriteLine(value);
    }

    class Program
    {
        static void Main(string[] args)
        {
            int N = IO.ReadInt();
            IO.Cout(1 / (double)N);
        }
    }
}
0