結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2017-09-27 05:42:38 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 568 bytes |
コンパイル時間 | 673 ms |
コンパイル使用メモリ | 83,916 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 05:45:00 |
合計ジャッジ時間 | 1,400 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
# include <iostream># include <algorithm># include <vector># include <string># include <set># include <map># include <cmath># include <iomanip># include <functional># include <utility># include <stack># include <queue># include <list># include <bitset>using namespace std;using LL = long long;using ULL = unsigned long long;constexpr long long MOD = 1000000000 + 7;constexpr long long INF = 1000000000;const double PI = acos(-1);int main() {int l, k;cin >> l >> k;cout << (l % (k * 2) != 0 ? k*(l / (k * 2)) : k*(l / (k * 2) - 1)) << endl;}