結果

問題 No.63 ポッキーゲーム
ユーザー Toshihiko Yanase
提出日時 2018-04-29 21:12:43
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 284 bytes
コンパイル時間 440 ms
コンパイル使用メモリ 58,844 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 23:41:21
合計ジャッジ時間 1,221 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;


int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int L, K;
  cin >> L >> K;

  int num = L / (2*K);
  if(L % (2*K) == 0){
    num--;
  }
  cout << num * K << endl;

  return 0;
}
0