結果

問題 No.211 素数サイコロと合成数サイコロ (1)
ユーザー keymoonkeymoon
提出日時 2019-02-23 13:15:53
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 644 bytes
コンパイル時間 2,029 ms
コンパイル使用メモリ 105,084 KB
実行使用メモリ 24,664 KB
最終ジャッジ日時 2023-08-19 20:30:49
合計ジャッジ時間 5,922 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,608 KB
testcase_01 AC 58 ms
20,716 KB
testcase_02 AC 61 ms
22,432 KB
testcase_03 AC 60 ms
22,492 KB
testcase_04 AC 59 ms
24,664 KB
testcase_05 AC 59 ms
22,572 KB
testcase_06 AC 57 ms
20,720 KB
testcase_07 AC 57 ms
20,652 KB
testcase_08 AC 60 ms
22,432 KB
testcase_09 AC 58 ms
22,672 KB
testcase_10 AC 57 ms
20,692 KB
testcase_11 AC 60 ms
24,524 KB
testcase_12 AC 56 ms
22,656 KB
testcase_13 AC 58 ms
22,680 KB
testcase_14 AC 57 ms
20,624 KB
testcase_15 AC 56 ms
20,640 KB
testcase_16 AC 58 ms
22,688 KB
testcase_17 AC 59 ms
22,408 KB
testcase_18 AC 60 ms
24,468 KB
testcase_19 AC 57 ms
20,676 KB
testcase_20 AC 57 ms
22,648 KB
testcase_21 AC 57 ms
22,652 KB
testcase_22 AC 56 ms
20,584 KB
testcase_23 AC 57 ms
18,784 KB
testcase_24 AC 56 ms
20,688 KB
testcase_25 AC 57 ms
20,564 KB
testcase_26 AC 57 ms
22,660 KB
testcase_27 AC 57 ms
20,648 KB
testcase_28 AC 57 ms
20,600 KB
testcase_29 AC 59 ms
22,680 KB
testcase_30 AC 58 ms
22,604 KB
testcase_31 AC 57 ms
20,676 KB
testcase_32 AC 58 ms
20,776 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;

class P
{
    static void Main()
    {
        int count = 0;
        int n = int.Parse(Console.ReadLine());
        foreach (var i in new int[] { 2, 3, 5, 7, 11, 13 })
        {
            foreach (var j in new int[] { 4, 6, 8, 9, 10, 12 })
            {
                if (n == i * j) count++;
            }
        }
        Console.WriteLine(count / 36.0);
    }
}
0