結果

問題 No.63 ポッキーゲーム
ユーザー Fusen74
提出日時 2017-07-17 08:12:16
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 199 ms / 5,000 ms
コード長 191 bytes
コンパイル時間 528 ms
コンパイル使用メモリ 53,620 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-24 05:36:36
合計ジャッジ時間 1,975 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
using namespace std;

int main(){
	int L,K;
	cin >> L >> K;
	int rest = L, yu = 0;
	while(rest > 2*K){
		rest -= 2 * K;
		yu ++ ;
	}
	cout << yu * K << endl;

	return 0;
}
0