結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2021-01-07 22:38:29 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 302 bytes |
コンパイル時間 | 817 ms |
コンパイル使用メモリ | 73,864 KB |
最終ジャッジ日時 | 2025-01-17 10:27:24 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <algorithm> #include <cstdio> #include <iostream> #include <numeric> #include <optional> #include <vector> using namespace std; int main() { int32_t l, k; cin >> l >> k; auto ans = (l / 2 / k) * k; if (ans * 2 == l) ans -= k; cout << ans << endl; return 0; }