結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-15 13:47:49 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 188 ms / 5,000 ms |
| コード長 | 269 bytes |
| コンパイル時間 | 642 ms |
| コンパイル使用メモリ | 66,000 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-12 18:29:32 |
| 合計ジャッジ時間 | 2,115 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
using namespace std;
int main(){
int L, K;
cin >> L >> K;
int cnt = 0;
while(true){
L -= 2*K;
if(L<=0) break;
cnt++;
}
cout << cnt*K << endl;
}