結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
omu
|
| 提出日時 | 2015-11-23 13:40:44 |
| 言語 | C++11 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 427 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 06:37:37 |
| 合計ジャッジ時間 | 1,148 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 7 |
ソースコード
#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;
}
omu