結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-02-12 19:58:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 174 ms / 5,000 ms |
| コード長 | 273 bytes |
| コンパイル時間 | 508 ms |
| コンパイル使用メモリ | 58,840 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-24 04:45:47 |
| 合計ジャッジ時間 | 1,743 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <utility>
using namespace std;
int main() {
int l, k;
cin >> l >> k;
int k2 = k * 2;
int ans = 0;
while ( l > k2) {
l -= k2;
ans += k;
}
cout << ans << endl;
return 0;
}