結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
かぼちゃ
|
| 提出日時 | 2018-04-08 12:46:38 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 189 ms / 5,000 ms |
| コード長 | 310 bytes |
| コンパイル時間 | 2,249 ms |
| コンパイル使用メモリ | 62,964 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-26 20:19:37 |
| 合計ジャッジ時間 | 1,896 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <vector>
#include <algorithm>
#include <math.h>
#define ALL(x) (x).begin(),(x).end()
using namespace std;
int main(){
int l,k,ans = 0;
cin >> l >> k;
while(1){
l -= 2*k;
if(l <= 0)break;
ans += k;
}
cout << ans << endl;
return 0;
}
かぼちゃ