結果

問題 No.63 ポッキーゲーム
ユーザー popopopepepe1
提出日時 2019-09-29 08:30:51
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 338 bytes
コンパイル時間 2,077 ms
コンパイル使用メモリ 74,344 KB
実行使用メモリ 56,224 KB
最終ジャッジ日時 2024-10-03 04:23:49
合計ジャッジ時間 5,350 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int x = sc.nextInt();
    
    if(N/x/2==1 && N%x==0){
        System.out.println(0);
    }else{
        int y=(N/x/2)*x;
        System.out.println(y);
    }

  }
}
0