結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2023-01-24 20:15:54 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 176 bytes |
コンパイル時間 | 1,835 ms |
コンパイル使用メモリ | 192,244 KB |
最終ジャッジ日時 | 2025-02-10 06:34:50 |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {int l,k,ans;cin>>l>>k;ans = l/(k*2);if(l%(k*2)==0) ans--;cout<<ans*k<<endl;return 0;}