結果
| 問題 | No.857 素振り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-04 14:57:20 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 542 bytes |
| 記録 | |
| コンパイル時間 | 8,012 ms |
| コンパイル使用メモリ | 170,180 KB |
| 実行使用メモリ | 187,972 KB |
| 最終ジャッジ日時 | 2025-12-04 14:57:39 |
| 合計ジャッジ時間 | 8,781 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 4 WA * 4 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (114 ミリ秒)。 main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] input = Console.ReadLine()!.Split(' ');
decimal holiday1 = decimal.Parse(input[0]);
decimal holiday2 = decimal.Parse(input[1]);
decimal now = decimal.Parse(input[2]);
if (now > holiday1 && now > holiday2)
{
Console.WriteLine(now - 2);
}
else if (now < holiday2)
{
Console.WriteLine(now - 1);
}
else
{
Console.WriteLine(now);
}
}
}