結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
weaken
|
| 提出日時 | 2020-10-09 10:50:41 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 325 bytes |
| 記録 | |
| コンパイル時間 | 1,175 ms |
| コンパイル使用メモリ | 208,168 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-14 08:05:52 |
| 合計ジャッジ時間 | 2,334 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
#define fastIO (cin.tie(0), cout.tie(0), ios::sync_with_stdio(false))
using namespace std;
int main() {
fastIO;
int l, k;
cin >> l >> k;
if ((l % k == 0) && (l / k % 2 == 0)) {
cout << ((l / k / 2 - 1) * k) << '\n';
} else {
cout << ((l / k / 2) * k) << '\n';
}
return 0;
}
weaken