結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2015-11-23 13:41:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 325 bytes |
コンパイル時間 | 653 ms |
コンパイル使用メモリ | 64,748 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 04:57:22 |
合計ジャッジ時間 | 1,519 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#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 * 2 == l)ret -= k; cout << ret << endl; return 0; }