結果
| 問題 |
No.63 ポッキーゲーム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-29 10:19:52 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 760 ms |
| コンパイル使用メモリ | 78,044 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-09-29 10:19:53 |
| 合計ジャッジ時間 | 1,560 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 |
ソースコード
#include <iostream>
#include <math.h>
#include <algorithm>
#include <map>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define dRep(i, d, n) for (int i = d; i < (int)(n); i++)
#define forEach(arr) for (auto& it:arr)
int main(void){
double a,b;
string s;
cin >> a >> b;
// cin >> s;
long int n = int((ceil(a / b) - 1) / 2);
cout << int(n * b);
// cout << a / (b * 2) * b;
}