結果

問題 No.63 ポッキーゲーム
ユーザー omu
提出日時 2015-11-23 13:40:44
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 325 bytes
コンパイル時間 712 ms
コンパイル使用メモリ 65,292 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-09-13 17:15:16
合計ジャッジ時間 1,469 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 15 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <vector>
#include <iostream>
#include <string>
#include <sstream>
#include <algorithm>
#include <utility>
#include <map>

using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;

int main(){
	int l,k;
	cin >> l >> k;
	int ret = l / (2 * k) * k;
	if(ret == l / 2)ret -= k;
	cout << ret << endl;
	return 0;
}
0