結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2020-07-24 23:54:15 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 320 bytes |
コンパイル時間 | 1,577 ms |
コンパイル使用メモリ | 164,860 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-25 23:13:27 |
合計ジャッジ時間 | 2,599 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 15 WA * 7 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int l, k; cin >> l >> k; int tmp = l / (2 * k); int ans = k * tmp; //cout << tmp << "\n"; //cout << l - ans << "\n"; if (l - 2*ans > 0) cout << ans << "\n"; else cout << 0 << "\n"; return 0; }