結果

問題 No.63 ポッキーゲーム
ユーザー nyan68682154
提出日時 2019-05-13 21:55:38
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 231 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 56,960 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-08 08:16:43
合計ジャッジ時間 1,239 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<string>
#include<math.h>
using namespace std;

int main() {
	long int l;
	long int k;
	long int sum;
	cin >> l >> k;
	sum = l / k / 2 * k;
	if (l / 2 == sum) {
		cout << 0;
	}
	else {
		cout << sum;
	}
}
0