結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
prog470
|
| 提出日時 | 2016-09-10 01:35:01 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 176 ms / 5,000 ms |
| コード長 | 397 bytes |
| コンパイル時間 | 750 ms |
| コンパイル使用メモリ | 68,304 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 05:16:21 |
| 合計ジャッジ時間 | 2,043 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include<stdio.h>
#include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <algorithm>
#include <sstream>
#include <iostream>
#include <string>
using namespace std;
int main() {
int L, K;
cin >> L >> K;
int res = L, cnt = 0;;
while (1) {
if (res - (2 * K) <= 0) break;
res -= 2 * K;
cnt++;
}
cout << K*cnt << endl;
return 0;
}
prog470