結果

問題 No.63 ポッキーゲーム
ユーザー kohaku_kohaku
提出日時 2016-11-09 21:09:09
言語 Java
(openjdk 23)
結果
AC  
実行時間 144 ms / 5,000 ms
コード長 282 bytes
コンパイル時間 2,301 ms
コンパイル使用メモリ 73,608 KB
実行使用メモリ 41,772 KB
最終ジャッジ日時 2024-12-24 05:18:53
合計ジャッジ時間 6,078 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int L = sc.nextInt();
        int K = sc.nextInt();
int r =L/(2*K);

if(L%(2*K)==0){
r=r-1;
}
int a=r*K;
        System.out.println(a);
    }
}
0