結果
問題 | No.63 ポッキーゲーム |
ユーザー |
![]() |
提出日時 | 2015-12-15 07:09:33 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 312 bytes |
コンパイル時間 | 620 ms |
コンパイル使用メモリ | 69,300 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-12-24 04:57:43 |
合計ジャッジ時間 | 1,514 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 22 |
ソースコード
#include<iostream> #include<string> #include<fstream> #include<iomanip> #include<vector> #include<cctype> #include<algorithm> #include<sstream> using namespace std; int main() { int a, b; cin >> a >> b; if (a % (2 * b))cout << b*(a / (2 * b)) << endl; else cout << b*(a / (2 * b) - 1) << endl; return 0; }