結果
| 問題 | No.63 ポッキーゲーム |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-10 06:36:25 |
| 言語 | C++17(clang) (clang++ 22.1.8 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 5,000 ms |
| + 252µs | |
| コード長 | 255 bytes |
| 記録 | |
| コンパイル時間 | 963 ms |
| コンパイル使用メモリ | 123,392 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-09-05 08:35:10 |
| 合計ジャッジ時間 | 1,856 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
// No.63 ポッキーゲーム
#include <iostream>
using namespace std;
int main() {
int L, K;
cin >> L >> K;
if (L % (2 * K) == 0) {
cout << (L / (2 * K) - 1) * K << endl;
} else {
cout << L / (2 * K) * K << endl;
}
}