結果
問題 |
No.857 素振り
|
ユーザー |
![]() |
提出日時 | 2021-06-01 21:21:06 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 54 ms / 1,000 ms |
コード長 | 626 bytes |
コンパイル時間 | 7,589 ms |
コンパイル使用メモリ | 166,056 KB |
実行使用メモリ | 183,464 KB |
最終ジャッジ日時 | 2024-11-09 00:16:31 |
合計ジャッジ時間 | 8,834 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (95 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
using System; namespace ConsoleApp1 { class Program { static void Main(string[] args) { string[] inputA = Console.ReadLine().Split(' '); long X = long.Parse(inputA[0]); long Y = long.Parse(inputA[1]); long Z = long.Parse(inputA[2]); long count = 0; if (X<=Z&&Y<=Z) { count = Z - 2; }else if(X<=Z||Y<=Z) { count = Z - 1; } else { count = Z; } Console.WriteLine(count); } } }