結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2020-07-25 00:03:56 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 332 bytes |
コンパイル時間 | 3,631 ms |
コンパイル使用メモリ | 166,172 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-25 23:26:23 |
合計ジャッジ時間 | 2,232 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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 && tmp != 0) cout << ans << "\n"; else cout << 0 << "\n"; return 0; }