結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-30 15:26:15 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 567 bytes |
| コンパイル時間 | 8,038 ms |
| コンパイル使用メモリ | 170,748 KB |
| 実行使用メモリ | 187,004 KB |
| 最終ジャッジ日時 | 2025-10-30 15:26:27 |
| 合計ジャッジ時間 | 10,770 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 11 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (110 ミリ秒)。 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[] inputNum = Console.ReadLine()!.Split(' ');
int allLength = int.Parse(inputNum[0]);
int once = int.Parse(inputNum[1]);
if (once * 2 == allLength)
{
Console.WriteLine(0);
}
else
{
int half = allLength / 2;
int num = half / once;
int ans = num * once;
if (ans == half)
{
ans -= 1;
}
Console.WriteLine(ans);
}
}
}