結果
問題 | No.63 ポッキーゲーム |
ユーザー |
|
提出日時 | 2019-03-10 13:41:01 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 622 bytes |
コンパイル時間 | 611 ms |
コンパイル使用メモリ | 72,344 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 15:17:33 |
合計ジャッジ時間 | 1,458 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include <iostream>#include <stdio.h>#include <cmath>#include <algorithm>#include <vector>#define FOR(i, a, b) for (int i = a; i < b; i++)#define FORN(i, a, b) for (int i = a; i <= b; i++)#define P(s) cout << s << endl#define PC(condition, _true, _false) if (condition) _true; else _false;#define toInt(_char) _char - '0'using namespace std;//// Created by karayuu on 2018-12-18.//int main() {int l, k;cin >> l >> k;int shrinkage = k * 2;int count;if (l % shrinkage == 0) {count = l / shrinkage - 1;} else {count = l / shrinkage;}P(count * k);}