結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-05 13:22:26 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 373 bytes |
| コンパイル時間 | 724 ms |
| コンパイル使用メモリ | 78,388 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-02 04:25:55 |
| 合計ジャッジ時間 | 2,796 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 14 WA * 8 |
ソースコード
#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;
}