結果

問題 No.63 ポッキーゲーム
ユーザー k-a-rgbk-a-rgb
提出日時 2023-09-08 14:45:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 480 ms / 5,000 ms
コード長 551 bytes
コンパイル時間 2,127 ms
コンパイル使用メモリ 104,192 KB
実行使用メモリ 23,956 KB
最終ジャッジ日時 2023-09-08 14:45:38
合計ジャッジ時間 5,930 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,036 KB
testcase_01 AC 60 ms
21,976 KB
testcase_02 AC 60 ms
23,956 KB
testcase_03 AC 59 ms
21,884 KB
testcase_04 AC 60 ms
23,832 KB
testcase_05 AC 61 ms
21,844 KB
testcase_06 AC 61 ms
19,812 KB
testcase_07 AC 59 ms
21,912 KB
testcase_08 AC 59 ms
21,840 KB
testcase_09 AC 60 ms
21,848 KB
testcase_10 AC 64 ms
23,896 KB
testcase_11 AC 447 ms
21,924 KB
testcase_12 AC 67 ms
21,920 KB
testcase_13 AC 480 ms
21,936 KB
testcase_14 AC 68 ms
23,940 KB
testcase_15 AC 69 ms
23,944 KB
testcase_16 AC 61 ms
21,944 KB
testcase_17 AC 458 ms
22,020 KB
testcase_18 AC 60 ms
23,936 KB
testcase_19 AC 116 ms
21,876 KB
testcase_20 AC 66 ms
21,856 KB
testcase_21 AC 78 ms
21,972 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

namespace PracticeAtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
			
			
			//ポッキーG
			string sC = Console.ReadLine();
			string[] sD = sC.Split(' ');
			
			int[] after = sD.Select(s => int.Parse(s)).ToArray();
			
			//Array.Sort(after);
			int int2K = after[1] *2; 
			int intL = after[0];
			int cnt = 0;
			
			while(int2K < intL){
				intL = intL - int2K;
				cnt++;
			
			}
				
			Console.WriteLine(cnt* int2K/2);
			
		}
    }
}
0