結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2021-02-05 13:21:26 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 372 bytes |
コンパイル時間 | 949 ms |
コンパイル使用メモリ | 78,380 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-02 04:24:50 |
合計ジャッジ時間 | 3,407 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 WA * 5 |
ソースコード
#include <iostream>#include <stdio.h>#include <vector>#include <map>#include <utility>#include <list>#include <math.h>#include <algorithm>using namespace std;int main(){int l,k;int ans=0;cin>>l>>k;l/=2;for(int i=0;i<=l;i+=k){if(i<l){ans=max(ans,i);}}cout<<ans<<endl;return 0;}