結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
![]() |
提出日時 | 2023-07-01 12:22:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 304 bytes |
コンパイル時間 | 586 ms |
コンパイル使用メモリ | 65,664 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-07 22:55:13 |
合計ジャッジ時間 | 1,451 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 19 WA * 3 |
ソースコード
#include <iostream> #include <vector> using namespace std; int main(){ // input long L,K; cin >> L>>K; int totalcount =0; totalcount = (L + K -1) / K ; int yuucount = totalcount / 2; int ans = K * yuucount; if(L % (2*K)==0){ ans -= K; } cout << ans << endl; // output }