結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-06 17:58:55 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 5,000 ms |
| コード長 | 232 bytes |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 69,088 KB |
| 最終ジャッジ日時 | 2025-01-06 18:28:44 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include<string>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
int l,k;
cin>>l>>k;
int cnt = 0;
while(1)
{
if(l-2*k > 0)
{
l -= 2*k;
cnt+=k;
}else break;
}
cout<<cnt<<endl;
return 0;
}