結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-30 14:29:07 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 477 bytes |
| コンパイル時間 | 7,907 ms |
| コンパイル使用メモリ | 169,704 KB |
| 実行使用メモリ | 189,036 KB |
| 最終ジャッジ日時 | 2025-10-30 14:29:19 |
| 合計ジャッジ時間 | 10,718 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 9 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /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/
ソースコード
class Program
{
static void Main(string[] args)
{
string[] inputNum = Console.ReadLine()!.Split(' ');
int allLength = int.Parse(inputNum[0]);
int once = int.Parse(inputNum[1]);
int half = allLength / 2;
int eatCount = half / once;
if (eatCount == 1)
{
Console.WriteLine(0);
}
else
{
int ans = eatCount * once;
Console.WriteLine(ans);
}
}
}