結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2023-12-21 01:06:55 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 357 bytes |
コンパイル時間 | 2,256 ms |
コンパイル使用メモリ | 199,360 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-27 10:27:52 |
合計ジャッジ時間 | 3,182 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> using namespace std; #ifdef LOCAL #include "settings/debug.cpp" #define _GLIBCXX_DEBUG #else #define Debug(...) void(0) #endif #define rep(i, n) for (int i = 0; i < (n); ++i) using ll = long long; using ull = unsigned long long; int main() { int l, k; cin >> l >> k; cout << (l - 1) / (2 * k) * k << endl; return 0; }