結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-10-30 15:16:42 |
| 言語 | C# (.NET 8.0.404) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 482 bytes |
| コンパイル時間 | 9,201 ms |
| コンパイル使用メモリ | 168,792 KB |
| 実行使用メモリ | 187,268 KB |
| 最終ジャッジ日時 | 2025-10-30 15:16:54 |
| 合計ジャッジ時間 | 10,627 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (118 ミリ秒)。 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 (allLength / once == 2)
{
Console.WriteLine(0);
}
else
{
int half = allLength / 2;
int num = half / once;
int ans = num * once;
Console.WriteLine(ans);
}
}
}