結果
| 問題 | No.211 素数サイコロと合成数サイコロ (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-01 17:23:44 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 926 bytes |
| コンパイル時間 | 8,547 ms |
| コンパイル使用メモリ | 170,712 KB |
| 実行使用メモリ | 188,060 KB |
| 最終ジャッジ日時 | 2025-12-01 17:23:57 |
| 合計ジャッジ時間 | 11,436 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (120 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
public class Program
{
public static void Main()
{
int num = int.Parse(Console.ReadLine() ?? string.Empty);
//string[] str = (Console.ReadLine() ?? string.Empty).Trim().Split(' ');
//string str = Console.ReadLine() ?? string.Empty;
if(num == 2 || num == 3||num == 5||num==7|| num == 11||num== 13 ||num ==4||num == 6
||num == 9 || num == 10)
{
Console.WriteLine(0.00000000000000000);
}
int[] so = {2,3,5,7,11,13};
int[] go = { 4, 6, 8, 9, 10, 12 };
int count = 0;
for(int i = 0; i < so.Length; i++)
{
for(int j = 0; j < go.Length; j++)
{
int ans = so[i] * go[j];
if(ans == num)
{
count++;
}
}
}
double aaa = (double)count / 36;
Console.WriteLine(aaa);
}
}