結果
問題 |
No.63 ポッキーゲーム
|
ユーザー |
|
提出日時 | 2020-05-17 01:25:46 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 1,560 ms |
コンパイル使用メモリ | 165,040 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-23 04:11:39 |
合計ジャッジ時間 | 2,342 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 4 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0; i<(n); i++) using namespace std; typedef long long ll; int main(){ int L,K; cin>>L>>K; if(L%(2*K)==0){ int ans=L/(2*K); cout << ans-1 << endl; } else { int ans=L/(2*K); cout << ans*K << endl; } }