結果
問題 | No.63 ポッキーゲーム |
ユーザー | siguma323 |
提出日時 | 2016-05-03 18:38:58 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 373 bytes |
コンパイル時間 | 627 ms |
コンパイル使用メモリ | 65,560 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-04-15 10:33:44 |
合計ジャッジ時間 | 1,595 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
5,248 KB |
testcase_01 | AC | 1 ms
5,376 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 2 ms
5,376 KB |
testcase_05 | AC | 2 ms
5,376 KB |
testcase_06 | AC | 2 ms
5,376 KB |
testcase_07 | WA | - |
testcase_08 | AC | 2 ms
5,376 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 2 ms
5,376 KB |
testcase_17 | AC | 2 ms
5,376 KB |
testcase_18 | AC | 2 ms
5,376 KB |
testcase_19 | AC | 2 ms
5,376 KB |
testcase_20 | AC | 2 ms
5,376 KB |
testcase_21 | AC | 2 ms
5,376 KB |
ソースコード
#include <algorithm> #include <numeric> #include <string> #include <vector> #include <iostream> #include <queue> #include <utility> #include <cmath> using namespace std; using ull = unsigned long long; int main() { ull l,k; cin >> l >> k; int num = ceil(l/(2*k)); if(num & 1) cout << (num-1)*k << endl; else cout << num*k << endl; }