結果

問題 No.63 ポッキーゲーム
ユーザー CavasiroCavasiro
提出日時 2020-04-15 15:54:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 135 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 2,078 ms
コンパイル使用メモリ 74,736 KB
実行使用メモリ 54,512 KB
最終ジャッジ日時 2024-04-09 18:43:37
合計ジャッジ時間 5,965 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
53,992 KB
testcase_01 AC 132 ms
54,280 KB
testcase_02 AC 132 ms
54,048 KB
testcase_03 AC 132 ms
54,188 KB
testcase_04 AC 134 ms
54,512 KB
testcase_05 AC 135 ms
53,852 KB
testcase_06 AC 132 ms
53,996 KB
testcase_07 AC 133 ms
54,288 KB
testcase_08 AC 131 ms
54,124 KB
testcase_09 AC 131 ms
54,156 KB
testcase_10 AC 132 ms
54,144 KB
testcase_11 AC 132 ms
54,092 KB
testcase_12 AC 132 ms
54,108 KB
testcase_13 AC 132 ms
54,088 KB
testcase_14 AC 131 ms
54,032 KB
testcase_15 AC 131 ms
53,688 KB
testcase_16 AC 133 ms
54,116 KB
testcase_17 AC 132 ms
54,148 KB
testcase_18 AC 132 ms
53,864 KB
testcase_19 AC 132 ms
53,976 KB
testcase_20 AC 131 ms
54,248 KB
testcase_21 AC 132 ms
54,248 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
 
class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int l = sc.nextInt();
		int k = sc.nextInt();
		
		System.out.println((int)(((l-1)/2.0)/k)*k);
	}
}
0