結果

問題 No.63 ポッキーゲーム
ユーザー Yug_min_null
提出日時 2021-09-03 01:44:47
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 5,000 ms
コード長 184 bytes
コンパイル時間 2,058 ms
コンパイル使用メモリ 185,472 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-30 19:23:15
合計ジャッジ時間 3,232 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;

int main() {
  int L, K; cin >> L >> K;
  int ans = L/(2*K);
  if(L%(2*K) == 0) ans--;
  cout << ans*K << endl;
}
0