結果
| 問題 | No.632 穴埋め門松列 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-07 21:33:02 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
MLE
|
| 実行時間 | - |
| コード長 | 777 bytes |
| 記録 | |
| コンパイル時間 | 7,486 ms |
| コンパイル使用メモリ | 168,612 KB |
| 実行使用メモリ | 187,984 KB |
| 最終ジャッジ日時 | 2025-12-07 21:33:12 |
| 合計ジャッジ時間 | 8,835 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 MLE * 1 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (129 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System;
class Program
{
static void Main()
{
string[] s = Console.ReadLine()!.Split();
string[] candidates = { "1", "4" };
string result = "";
foreach (var c in candidates)
{
string[] arr = (string[])s.Clone();
for (int i = 0; i < 3; i++)
{
if (arr[i] == "?")
arr[i] = c;
}
int a = int.Parse(arr[0]);
int b = int.Parse(arr[1]);
int cNum = int.Parse(arr[2]);
if (a != b && b != cNum && a != cNum && (b == Math.Max(a, Math.Max(b, cNum)) || b == Math.Min(a, Math.Min(b, cNum))))
{
result += c;
}
}
Console.WriteLine(result);
}
}