結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2021-02-05 13:23:29 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 371 bytes |
コンパイル時間 | 731 ms |
コンパイル使用メモリ | 78,384 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-02 04:26:46 |
合計ジャッジ時間 | 2,603 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;}