結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2025-09-22 12:16:00 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 340 bytes |
コンパイル時間 | 2,567 ms |
コンパイル使用メモリ | 275,208 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-22 12:16:04 |
合計ジャッジ時間 | 3,739 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h> [[nodiscard]] static inline constexpr uint_fast32_t solve(const uint_fast32_t L, const uint_fast32_t K) noexcept { return K * ((L - 1) / (K * 2)); } int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); uint_fast32_t L, K; std::cin >> L >> K; std::cout << solve(L, K) << '\n'; return 0; }