結果
| 問題 | No.211 素数サイコロと合成数サイコロ (1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-01 17:35:10 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 982 bytes |
| コンパイル時間 | 8,167 ms |
| コンパイル使用メモリ | 170,908 KB |
| 実行使用メモリ | 188,660 KB |
| 最終ジャッジ日時 | 2025-12-01 17:35:22 |
| 合計ジャッジ時間 | 11,145 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 32 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (111 ミリ秒)。 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)
{
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++)
{
if (so[i] * go[5] < num)
{
continue;
}
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);
}
}