結果

問題 No.63 ポッキーゲーム
ユーザー ミドリムシ
提出日時 2017-10-14 04:29:56
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 147 bytes
コンパイル時間 610 ms
コンパイル使用メモリ 60,588 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-17 13:10:09
合計ジャッジ時間 1,365 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 8 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cmath>
using namespace std;
 
int main(){
	int L, K;
	cin >> L >> K;
	cout << floor((L - 1) / 2.0 / K) * K << endl;
}
0