結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2025-03-31 15:44:11 |
言語 | C# (.NET 8.0.404) |
結果 |
AC
|
実行時間 | 335 ms / 5,000 ms |
コード長 | 506 bytes |
コンパイル時間 | 8,565 ms |
コンパイル使用メモリ | 167,904 KB |
実行使用メモリ | 186,920 KB |
最終ジャッジ日時 | 2025-03-31 15:44:26 |
合計ジャッジ時間 | 12,075 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.csproj を復元しました (124 ミリ秒)。 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(' ');Console.WriteLine( CatCount(int.Parse(inputNum[0]), int.Parse(inputNum[1]) * 2)* int.Parse(inputNum[1]));}private static int CatCount (int size , int cutsize){int count = 0;while (size > cutsize * (count + 1)){count++;}return count;}}