結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
weaken
|
| 提出日時 | 2020-10-09 10:50:41 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 16 ms / 5,000 ms |
| コード長 | 325 bytes |
| コンパイル時間 | 1,785 ms |
| コンパイル使用メモリ | 191,460 KB |
| 最終ジャッジ日時 | 2025-01-15 03:39:50 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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