結果

問題 No.63 ポッキーゲーム
ユーザー KKT89
提出日時 2020-01-08 06:10:55
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 5,000 ms
コード長 226 bytes
コンパイル時間 814 ms
コンパイル使用メモリ 72,092 KB
最終ジャッジ日時 2025-01-08 16:55:52
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
typedef long long int ll;

int main(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	int a,b; cin >> a >> b;
	cout << (a-1)/(2*b)*b << endl;
}
0