結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2016-09-01 17:16:56 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 222 bytes |
コンパイル時間 | 616 ms |
コンパイル使用メモリ | 55,060 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-15 16:59:57 |
合計ジャッジ時間 | 1,397 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 7 |
ソースコード
#include <iostream> using namespace std; int main() { int L, K; cin >> L >> K; const int half = L / 2; int n = half / K; if (half % K == 0) --n; int answer = K * n; cout << answer << endl; return 0; }