結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2016-11-06 17:51:52 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 193 bytes |
コンパイル時間 | 1,236 ms |
コンパイル使用メモリ | 159,532 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-25 03:22:33 |
合計ジャッジ時間 | 2,031 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int L; int K; cin >> L >> K; if(L % 2)L++; L /= 2; if(L % K)cout << L / K; else cout << L / K - 1 << endl; return 0; }