結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2022-11-22 00:07:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 237 bytes |
コンパイル時間 | 629 ms |
コンパイル使用メモリ | 64,132 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-22 13:18:00 |
合計ジャッジ時間 | 1,642 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 4 |
ソースコード
#include <iostream> using namespace std; int main() { int L, K; cin >> L >> K; if (L % (K * 2) == 0) { cout << (L / (K * 2)) - 1 << endl; return 0; } cout << (L / (K * 2)) * K << endl; return 0; }