結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2014-11-11 23:28:59 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 397 bytes |
コンパイル時間 | 903 ms |
コンパイル使用メモリ | 72,156 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-12-31 09:47:43 |
合計ジャッジ時間 | 1,794 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 14 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <cmath> #include <algorithm> #include <cstdlib> #include <ctime> #include <cstdio> #include <functional> #include <set> #include <sstream> #include <cctype> using namespace std; int main(){ long n,k; cin>>n>>k; if(n==2*k) cout<<0<<endl; else cout<<ceil(n/(2*k))*k<<endl; return 0; }